So, anyone have any ideas on how CF ties the temporary upload filename to the 
final cffile path/filename? That's what I'm trying to figure out so that I 
could cfdirectory the tmp folder with a filter on the filename to get the file 
size as it is uploading. I'd check every second and display a status bar type 
graphic for the user showing them how much has been uploaded. Any thoughts?

________________________________

From: Burns, John D [mailto:[EMAIL PROTECTED]
Sent: Mon 12/12/2005 1:57 PM
To: CF-Talk
Subject: RE: How to determine the name of a file upload



But the filename seems to be a temporary filename? It's not the name that the 
user chose. And, I don't know for sure that it's the last file that was 
uploaded. There may be other large uploads going at the same time.

________________________________

From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
Sent: Mon 12/12/2005 9:38 AM
To: CF-Talk
Subject: RE: How to determine the name of a file upload



> From: Burns, John D [mailto:[EMAIL PROTECTED]
> I'm trying to build a sort of upload status display for large
> file uploads.  I've seen some before and I know the subject
> has bounced around the list some in the past, however, I'm
> having trouble figuring out the name of the temp file that's
> being uploaded.  I'm on CFMX 6.1 and the file name that I'm
> seeing when uploading a large video file is neotmp50131.tmp.
> Is there any way to figure out that name when the form is
> submitted? If so, I'm hoping to do a cfdirectory call to get
> the current file size that is being uploaded from the form.
> Anybody do anything like this or have any ideas?

<cfdirectory
        action="list"
        directory="#getTempDirectory()#"
        filter="#listLast(form.filename,'\')#"
        name="fileStats" />
      
<cfdump var="#fileStats#" />








~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:226840
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