Flex amfphp file upload




















The NetConnection debugger doesn't seem to work reliably and the service browser is not necessary amfphp has one built in which will work better for you. For debugging services use plenty of trace statements in Flash. Create a new fla called User. And edit the following on the stage :.

When you are logged in this movie will list all user preferences for you. I used this example and I have one problem. When I upload a picture, I can see the picture and the name, but the file is empty 0kb.

Nice script! Is there a way to trace the upload progress just like the FileReference. Thank ya. I am afraid that tracing i believe that you want some sort of progressbar is not possible when uploading files via remoting. The only thing that you might have is a busy cursor indicator. Greetings, Gerton. Thank ya!! My dream was to realize and entire upload manager in remoting including the upload progress event to be traced in a progress bar. Now I perform the upload through the classic FileReference.

Thanks for the quick reply! So in the […]. Hi, its working well. I got it, in gloabls. Its not working with images. I have the same problem as Matthias. Hi Andrzej, Just installed the sample again and it is working with any file type, including images on my laptop.

Is your upload directory writable? Hi, I found the problem — it was my fault. Nikos: Well fortunately for you i have posted a blog some time ago about how to setup a zend framework project. Error error Error Security sandbox violation. Sounds like a standard flex sandbox security error. You can only do remote calls when your flex application is running from the same domain as your used channel endpoint. So if you are running the flex application from flashbuilder, then your endpoint should be localhost There is plenty information on the internet about security, sandbox, crossdomain.

I found some examples using direct download from a php. If yes, some example? Based on it I've made my own version, because my service is defined via service-config. If you already know how to configure the gateway in order to reach both the service class and the value object class, here are the two classes:. The name of the file in this directory will be the one it came from the client. Of course you will need to change this, but for now is outside the scope of this example.

On the client side, in the src folder of the Flex Project I build a package with the value object class, saved as ActionScrip file:. For me it works! At least on my development server. Be aware of the security hole here. Name required. The only means of strengthening one's intelligence is to make up one's mind about nothing-- to let the mind be a thoroughfare for all thoughts. John Keats - Blogroll Gerton ten Ham Tom Kyte.

Blog at WordPress. Follow Following. Gerton's Corner. Sign me up. Already have a WordPress. Log in now.



0コメント

  • 1000 / 1000