QuiddyBiddy Posted April 23, 2008 Share Posted April 23, 2008 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 https://forums.phpfreaks.com/topic/102626-general-enquiry-about-use-of-php-tmp-dir/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.