Hi Les - You could try <cfdump var="#cffile#"> after you have done the
upload.. That will give you all the information you need.

Unfortunately the file must be uploaded before we can ascertain how big
it actually is.. You will be able to examine the mime type of the file
by looking at the dump of CFFILE. I can't remember off hand if the file
size is in the CFFILE scope (I think it is though) - If not, you could
do a CFDIRECTORY of the folder where the file was uploaded to and
specify a filter of whatever the filename was e.g. myfile.mp3 - that
will give you the files size.. Then depending on wether you're happy or
not, delete the file and throw an error to the user.

Martin Parry
Macromedia Certified Developer
http://www.BeetrootStreet.co.uk

-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: 09 January 2005 07:23
To: CF-Talk
Subject: Possible to tell where a file went?

Using:

<cffile action="upload"
        destination="/vservers/mysite/htdocs/uploads/"
        filefield="myfile"
        nameconflict="overwrite">

Page also has a query on it to add a database record

1. Database is being updated properly
2. The file name is being written properly into the database
3. I've verified the destination address with the hosting company
4. cffile is enabled - I'm using it on another site
    on the same server


However, files are not being written into the director specified, plus 
I'm not getting an error message.

Is there a way to see the exact path of the file after it's uploaded so 
I can tell where it's going? Right now, all test files just seem to 
vanish somewhere and I dunno where!

Of course, I'll add the proper security once the problem is found and 
before ths goes live.

In addition, how would I restrict this to *just* mp3 files 2 megs and 
under only, for example?

-- 
Les Mizzell




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189743
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