Are you using J2EE sessions on CF7 or higher? If so, you need the jsessionid to be written in the correct place in the URL, which isn't as a url var, it's as a ;jsessionid=xxxxxx attached to the URL, since your doing a POST.
http://coldfused.blogspot.com/2006/09/handling-j2ee-session-with-cookies_12.html On Nov 4, 2007 6:22 AM, Simon Bailey <[EMAIL PROTECTED]> wrote: > Hi, > > I am having great trouble with Flex and ColdFusion when it comes to > uploading. I can upload fine to a server with no authentication set > up but as soon as I start to upload using FileReference and > UrlRequest to a server with authentication from cflogin problems > occur. Basically it fails silently, it displays progress in the > upload and that the upload was successful but my files is not there. > I have check all my scripts and location for the file upload and it > just aint happening. I have tested a simple cfm upload form and hit > that fine, uploaded and can write to files also on the remote server > so I know thats set up fine. > > So after much googling I have found that when using FileReference for > uploading the upload will use a new browser session to upload the > files and therefore remove all session variables!!! Arrrrggh! So my > work around has involved grabbing the session.URLToken, sending that > into my Flex app and then when I call the upload cfm script pass the > session.URLToken variables in the url string like so: > > request = new URLRequest(); > chosenFile = fr.name; > request.url = UPLOAD_URL+"?"+sessionVars; > > Problem is it still doesnt work? > (a) I dont know if that is enough to satisfy cflogin criteria i.e. do > I need to set anything in the upload.cfm page to say that these are > the session variables. > (b) another weird thing is that if it is starting a new browser > session why am I not presented with my login panel as requested by my > Application.cfc? > > Any one else suffered here or could make a suggestion please :) > > Simon > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4774 Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
