PDA

View Full Version : Flex Image Uploader not calling DataEvent.UPLOAD_COMPLETE_DATA for 2 MB + files


areai51
09-14-2009, 10:25 PM
Hi,
I have a Flex uploader which works fine for all files under an 1MB or so.
However for files larger than 2MB or 5MB depending on the users net connection the DataEvent.UPLOAD_COMPLETE_DATA doesn't get called even though the Event.COMPLETE gets called.. I thought it would probably be a PHP script timeout.. but the file does get uploaded to the folder after a small timela. Any ideas on what could be wrong.. here is the URL to the working application
http://tinyurl.com/pqwjd4
this will work for smaller file sizes but try uploading 5 MB + and it would not work..
I'm logging then events in the text area below so that you could have a look to see which events are getting triggered



Any pointers or help would be greatly appreciated

Thanks in advance

mikarama
10-06-2010, 03:08 AM
try

if ( move_uploaded_file( $_FILES['Filedata']['tmp_name'] , $uploadfile ) ) {
echo( '1 ' . $_FILES['Filedata']['name']);

}
else{
//file failed to move
echo( '0');
}