On friday I introduced myself with a very interesting problem. In one of my project at Learning assistant we wanted to use Flex application to uplaod file using secure url. It was going well untill I tested my application in Firefox. For some reason I was getting Error #2038: File I/O Error. After sometime searching for the solution on google I realised that not only me but so many people had the same issue. Some of them have suggested different solutions check this:
http://thanksmister.com/?p=59
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html
http://www.onflex.org/ted/2005/11/using-flash-player-under-https-with.php
I tried all of them but still the problem was the same. I tried sending back the jsessionid, cfid, cftoken with url request etc, but was getting the same file io error. I checked the IIS access log to see what's really happening. Whenever I was trying upload file using Fire fox, it was making two request to the file upload url, the response for the first request was fine but the immediate second request was served with http header 403... I still don't know why second request was not served? or why two requests were made?
Anyways, we discussed not to use https for the file upload still we wanted to serve the flash object through https. So we changed the upload url to send request to http rahter than https and problem was solved. But if anyone had such problem and if you got some better solution please let me know.
Jatin
Sunday, 13 July 2008
Uploading File over HTTPS with FileReference
Posted by
Jatin Desai
at
12:41
Subscribe to:
Post Comments (Atom)
2 comments:
Actually, the thing is Firefox opens a new socket to post files with Flash (surely for security reasons),so it creates a new session.
We had the same problem at Emojo with the media editor!! The only way is to generate a token (with remoting for instance) living during 1 minute and use it as user key.
Do you use a real SSL certificate?
That link solved my problem.
http://swfupload.org/forum/generaldiscussion/347
Of course you should be transfer the sessionid for the firefox, too.
Sorry for my bad english ;)
Nice regards from Nuremberg.
Post a Comment