[eluser]Firestorm ZERO[/eluser]
I'm adding the ability for users to upload images that can be later be view by others. I see CI already has file upload class so that makes things easier. This is my first doing this. And I would like to do this as secure as possible. So if anyone can give me a quick run down and see if I'm doing it right.
Here's my plan...
- the file upload class to restrict to just images
- the directory of the folder will be set to 755
- the images will have a hash for their filenames
- the DB will hold unique_id and the file hash and original file name
- have an image-view script to call the DB by the unique_id to get the file