Reputation: 30103
I'm facing a dilemma on how to implement file upload and download in a PHP website.
I have these criteria:
So here are the methods I'm currently looking at and how I assess them based on my criteria:
Database BLOB
FTP
My questions:
PS Please excuse my English.
Upvotes: 0
Views: 184
Reputation: 15629
Why not just use the file system to store the files and store the path to the given file (+ permissions, if needed) in addition in a database.
The upload folder isn't accessible from the public and an wrapper script serves the content to the user.
Upvotes: 3
Reputation: 71
for me the usage of BLOB is not the best. I thought about BLOB to upload pictures in my own website, but the best way to upload file is to put them directly on ur server locally.
Upvotes: 2