Hey Dan,

No need to futz with the headers... cffile provides the name of the
uploaded file (prior to upload) in the #cffile.clientfile# variable...
or clientFileName / clientFielExt for smaller bits iirc... here's the
variable list:

http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/expres18.htm

> I have a dilemma I'm trying to solve. I need to know the
> exact name of the
> file the user is uploading--not the name after CFFILE has
> already written
> this to disk.

> This information looks to be available POST header under
> the
> "Content-Disposition". Unfortunately, this information
> doesn't appear to be
> accessible via the getHTTPRequestData() function.

> Anyone know of a way to retrieve this information from the
> HTTP headers via
> CFMX 6.1?

> The <cffile action="upload" /> in my opinion sorely misses
> having the
> following features:

> * Returning the original name of the file upload
> * The ability to specify the name of the file when writing
> it to disk.


s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213002
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to