On 3/7/2011 11:40 AM, Don wrote:
>>> Why do you need to do this before you process it with CFFILE?
> Because once its uploaded the server hacks off the last (.)
>
> For example:
>
> original file: somefile.mack.txt
>
> renamed file on server: somefile.mack

Well, as Dave indicated, ColdFusion is not actually involved in the file 
upload.  No matter that the parameter of the <cffile...> tag is called.  
The flow is:

User picks file with client (i.e. browser) file form control.

The user submits the request.

The client reads the file from the user's file system and encrypts it 
into the header of the request.

It then sends the request to the web server (i.e. IIS, Apache, etc).

The web server decrypts the file from the header to a temporary 
location. 
(C:\JRun4\servers\cfusion25\SERVER-INF\temp\cfusion.war-tmp\neotmp4910092545170934955.tmp)
 
for example.

The web server then tells ColdFusion about the uploaded file and where 
it was.

If you want to do anything with the file data before the last step, you 
will either have to have code running on the Client system OR you might 
be able to get some of the data from the raw request headers.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342817
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to