Jump to content

general enquiry about use of php tmp dir


QuiddyBiddy

Recommended Posts

when i use flash to upload an image to my php script, it sends it as an 'application/octet-stream'.

 

i tried to read from the $_FILES['Filedata']['tmp_name'] element to read in the file contents to a string.

 

 

however this would not work as it could not find the file. Searching manually through the dir to my allocated temp dir i could

not find the file either.

 

i also tried reading from [HTTP_POST_RAW_VARS] and the (://input) one, to no avail.

 

I knew it had to be there because i could echo back the name, temp_name and size.

 

Hoewever, when i used move_uploaded_file(), and pass through tmp_name, it was able to read the file and save it in a new location which i could now see the image.

 

What is happening here?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.