A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: upload images

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    16

    Exclamation 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

  2. #2
    Senior Member EQFlash's Avatar
    Join Date
    Jun 2002
    Location
    where i'm at
    Posts
    2,735
    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.

  3. #3
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    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?

  4. #4
    Junior Member
    Join Date
    Oct 2001
    Location
    Sydney
    Posts
    26

    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center