This content has been marked as final. Show 9 replies
is that path to uploadmyPhoto.php relative to your flash html (not swf) file?
Yes, Flash is in the root and php is insdie that.
Both the swf and the Flash html are in the root directory so
Root/PHP i s the path.
that's not right.
if your swf and html are in your root directory, is there a subdirectory of your root directory named php (not PHP), and does it contain testUpload.php?
I was unclear, sorry.
swf and html are in root directory
the directory called "php" is an immediate subdirectory of the root and it contains the file: "uploadmyPhoto.php"
then you should be using that php file name in your filereference upload() method.
Yes, actually the php file: testUpload.php is in the php directory as well, ( I forgot I'd changed it from uploadmyPhoto.php).
My biggest concern is that I'm not sure I understand the following from 'help'
The file is uploaded to the URL passed in the url parameter. The URL must be a server script configured to accept uploads. Flash Player uploads files using the HTTP POST method. The server script that handles the upload should expect a POST request with the following elements:
• A Content-Type element of multipart/form-data
• A Content-Disposition element with a name attribute set to "Filedata" and a filename attribute set to the name of the original file
• The binary contents of the file
Does this mean that in my php script I should have the following, using the exact name 'Filedata' ?
Also, regarding "multipart/form-data": This information is in the original html input form, but where is it in the Flash code above? How does the php script get it as it would from the form?
thank you , K?
I am getting a listener "on complete" response in my flash movie. But there's no uploaded file on the server!
it's part of the upload() method.
are you moving your uploaded file from its temporary location to another location?