-
1. Re: Flash file upload (FileReference) and CF sessions
fi_jj Apr 12, 2011 12:04 AM (in response to fi_jj)I guess there isn't and that it's just a "bug" in the ActiveX (IE) Flash Player plugin that it shares the session with uploads done using the AS3 FileReference class.
I'm planning to hack around the problem this way:
- Make an exception for the file upload page in the Application.cfc, so that it doesn't require authenticated session
- Make the uploader SWF first make a Remoting call that receives a unique key for the file upload (also stored on the server in a database)
- The upload page also receives this unique key, usable only once, from the SWF uploader as a parameter and checks from the database the user credentials and that the key is still valid (some manual timeout system)
Another possible hack would be to first load the file into a ByteArray in Flash and then pass that byte data as a POST parameter, but it would require 10.x plugin.
Does anyone know a reason why the "hack" wouldn't work or what complications might follow?
It's hard for me to see what is the point with this FileReference "feature".
