BrettHartel Posted December 20, 2012 Share Posted December 20, 2012 (edited) Thanks for taking the time to help me! What are the pros and cons of letting a user upload an image file to a database vs. folder? Specifically, which one is more secure and safer to use? Thanks, Brett Hartel Edited December 20, 2012 by BrettHartel Quote Link to comment https://forums.phpfreaks.com/topic/272213-pros-and-cons-of-letting-users-upload-image-files-to-a-database-vs-folder/ Share on other sites More sharing options...
Muddy_Funster Posted December 20, 2012 Share Posted December 20, 2012 each one is onely as secure as you make it. if you are providing write permissions to either the file system or the database you open up security. you yourself need to code in enough security in your script, regardless of which you use, to make sure that only what you want to happen is allowed to happen. That aside :- image = file --> folder = part of file system --> file system = specificaly designed to handle files Quote Link to comment https://forums.phpfreaks.com/topic/272213-pros-and-cons-of-letting-users-upload-image-files-to-a-database-vs-folder/#findComment-1400562 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.