Once you have uploaded the files, will they be downloaded many times or
rarely?  You might also consider putting these files in a database.  By
putting the "pointer" to the file in a database, you stand the change of
the file system and the database getting out-of-sync.  (Someone deletes
a file, but the DB doesn't get updated for any reason.)

I don't want to start a holy war on why you shouldn't upload files to a
database, but this is a very handy and portable solution as well. 

-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED] 
Sent: Sunday, January 09, 2005 1:23 AM
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




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