SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2009
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Viewing temporary uploaded files

    Is there a way to access and view temporary uploaded files before copying/moving them to a permanent location?

    I'm trying to access an image using tmp_name from the $_FILES array, (I'm running MAMP). I'm not quite sure how the temporary filename system works, it seems to be some form of data for PHP, which can't be simple echoed as src html.

    Thanks

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    php automatically deletes its temporary files when the script which created them finishes executing. The php script will have finished executing long before the browser gets and parses that html. So yea, you gotta copy it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •