I would like to retrieve the original path of the file upload for the
purposes of grabbing the initial file name and then checking to see how many
full
stops (.) are in the original file.
I need this to happen before I process it via CFFILE. Right now the form
data posts back in a
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
I would like to retrieve the original path of the file upload for
the purposes
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
By the time your server-side script runs, the file has already been
uploaded.
Please have a look at this post:
http://www.williamoncoldfusion.com/index.php/knowledgebase/file-uploading
If you are referring to the cffile.serverfilename key that is available after
the cffile upload command, that brings back somefile.mack, the extension is in
a different key off of cffile
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
Thanks guys.
IAN this caught my attention:
The client reads the file from the user's file system and encrypts it
into the header of the request
I've been using fiddler to view the headers and see the data I want :
200
Content-Disposition: form-data; name=b_file; filename=C:\Documents and
William, Ah I get you.
since the extension will be cut off and placed within another variable all I
would have to do post file upload is search the server.filename for a(.). Easy.
Cheers.
Please have a look at this post: http://www.williamoncoldfusion.
On 3/7/2011 12:52 PM, Don wrote:
200
Content-Disposition: form-data; name=b_file; filename=C:\Documents and
Settings\dsdfsd\Desktop\clean up\test.docupload.doc
And that is different from the cffile.clientFile property? Do note that
cffile.clientFile is the full file name,
8 matches
Mail list logo