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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4772
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to