-
upload images
I'm trying to upload an image to a server using the new upload code and a php script. The trace I have running says everything is fine and the file has uploaded, but when I go to the folder on my server the image isn't there. Does that mean it's a php issue or could there still be something wrong with my as.
Any help would apreciated
-
Senior Member
make the directories are scripted correctly. you might want to put the entire path to the directory the php file is located at and the directory the images are uploaded to. This way there is no confusion.
Last edited by EQFlash; 12-07-2005 at 11:27 PM.
If you don't think you're going to like the answer, then don't ask the question.
-
Flash Gordon
You did trace the flash movie sending the file, but the upload will trace
fine even if you upload the file to an empty php-script. So you definatly need
to debug your php script.
My letters on the F1 key have faded, how are yours today?
-
I had similar issues
My problem was correct addressing in the php script.
see example:
<?php
foreach ($_FILES as $fieldName => $file) {
echo move_uploaded_file($file['tmp_name'], "uploads/" . $folder . $file['name']);
}
?>
Note also that this must be before the <object>...Your SWF..</object>.
Hope this helps.
Progress is achieving the same error a different way!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|