I set up a file upload function within a larger Flex application that
works with PHP on the server-side. The PHP upload script returns a
string after the upload so that I can catch the event
DataEvent.UPLOAD_COMPLETE_DATA.

There are two anomalies:

1. I use a progress bar that is supposed to - well - display the
upload progress. But even with large files the bar jumps to 100% very
quickly and remains there until the end of the upload. If I trace
event.bytesLoaded the total bytes are reached within the first second
of the upload although the "real" upload is still going on.

2. If the file size is larger than ~600kb the event
DataEvent.UPLOAD_COMPLETE_DATA isn't fired any more. The only event
that is still fired after the upload is Event.COMPLETE. But I need to
get back some information from the server so I can't rely on
Even.COMPLETE. I suspected an issue with my PHP settings and set both
"max_execution_time" and "max_input_time" to 300 seconds in order to
avoid a time-out of my PHP upload script. But that didn't help.

Any suggestions on these issues?

Thanks in advance.

Stefan



Reply via email to