Page 1 of 1

upload and Cold Fusion

Posted: Tue Nov 17, 2009 8:48 pm
by j_mc
Hi, Excellent product.
I'm looking to thoroughly test and integrate b4 purchasing.
I'm using the applet_http_batch_upload.html and ColdFusion to process on server side.
I'm unclear as to how to get at the list of files that have been uploaded.
I've tried the process_debug.cfm script and it reports what I'd expect ie UPLOADFILE=path/filename but I need to have this info available to a script so that I can update dB's etc. I've read the relevant sections on POST and FORWARD parameters to the applet in applet_http_batchupload.js but am not understanding how to display the names of file(s) uploaded, or use them to do further processing.
The process.cfm script has a section at the end that appears to be attempting to display the name of an uploaded file but I never see this displayed in the browser once an upload has completed. ie the section where a variable called "message" is constructed from some of the results returned by the CFFILE operation.
I know this is really simple but I'm missing something important about the sequence of actions.
Any help much appreciated.
Thanks,
Julian

Re: upload and Cold Fusion

Posted: Tue Nov 17, 2009 9:01 pm
by support
You have to distinguish "url" and "forward" parameters:

url="process.cfm" is the server-side script that handles upload requests. It saves files in a folder on your server. You can modify it to enable store info in database or server-side session matching to end-user.

forward="afterupload.cfm" is another server-side script you can write that will display files uploaded and other info in browser once upload is completed. This script (not available in our sample) can also share end-user session with process.cfm to display info in browser.

Does it make sense ?

Re: upload and Cold Fusion

Posted: Tue Nov 17, 2009 9:14 pm
by j_mc
Thanks for lightning response.
Yes, I understand the difference between the URL and FORWARD parameters to the applet.
Should I be seeing the "message" I referred to below when running the unmodified process.cfm or process_debug.cfm?
Tx
Julian

Re: upload and Cold Fusion

Posted: Wed Nov 18, 2009 7:27 am
by support
No, the message with uploaded filename is displayed when you open process.cfm directly in browser to test simple upload (without the applet).