View Full Version : File Locations - database or file system?
dweiss
Mon 3rd Jul '06, 3:58pm
What are the pros and cons of choosing between storing uploaded files in the database versus using the file system? Is it better to use one or the other? Does the size of the file matter?
Thanks,
Zachery
Mon 3rd Jul '06, 4:02pm
If you can store your files in the filesystem it'd be be the better of the two option.
1996 328ti
Mon 3rd Jul '06, 7:22pm
I'm finding 1/2 of my sql filesize are attachments.
If I move my attachments to a file system, backing up my database will take less time. Although I will need to remember to backup my website more often.
dweiss
Tue 4th Jul '06, 11:46am
If you can store your files in the filesystem it'd be be the better of the two option.
Zachery -
Thanks. Is there any reason I might not be able to store the files in the file system? I'm running on a standard Linux/Apache setup.
-Danny.
Steve Machol
Tue 4th Jul '06, 11:54am
As long as yyou are not running PHP in Safe Mode or with open_basedir restrictions, this will work.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.