Has anyone else experienced strange intermittencies with SWFUpload lately? I got the tool working about a week ago and it seemed to be fine while performing multiple file uploads. This week, it seems like uploads just seem to work and not work spontaneously. The debug log shows no error, but the files uploaded don't show up anywhere on the server. I am running tests using Firefox and Opera in Linux and Safari on OS X and am curious about if this could be a fault in Flash. Does any one have any ideas on how to debug this a little further or am I the only one to have experienced this?
Thanks in advance,
Justin
April 9, 2008 - 3:43pm
I had an issue this week, still looking into it on one of my sites while the other seems to work fine. Out of curiosity, are you using Session variables in your site/upload script?
April 11, 2008 - 12:07pm
We are using this in a .NET application. We are not currently using any explicit session variables, but the page SWFU sits on does require authentication. The path that it uploads to, however, does allow anonymous access.
April 17, 2008 - 1:04am
It looks like I was able to narrow the issue down to two things:
The strange behavior I was experiencing was due to the fact that SWFU was not triggering the upload_success event as files were being uploaded. I switched the version of SWFU from Flash 9 to Flash 8 and that seems to have fixed it in Firefox and Opera. Safari still has exhibits symptons of the upload_success "bug" though. This is using version 2.0 of SWFU on Linux and OS X. both with the latest Flash installations. Any clues on how to do debug this would be greatly appreciated.
April 17, 2008 - 11:26am
Flash's DataEvent.UPLOAD_COMPLETE_DATA is so picky, especially, it seems, on OS X.
1) You must return data.
2) You must return enough data.
3) You mustn't return too much data
4) You have to be careful about how you end the reponse (I've had trouble with ASP.Net Response.End()).
5) You must return quickly (Flash time's out after 30 seconds starting from the time the upload is complete and the time data is returned).
On Linux the the uploadProgress events are not called periodically. One is fired at 100%.