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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.