what is the safe way to implement file upload in your server with PHP. Here is my situation..
1. i want to let users upload small avatar like image files in the website.
2. I tried setting upload folder 777 permission and i am afraid that it could be a serious security concern?
3. i tried setting permissions to 755 or 775 , but upload fails.
4. i am saving the images in the server and not storing in the database because of performance issues.
what is the best way to do this?
1. i want to let users upload small avatar like image files in the website.
2. I tried setting upload folder 777 permission and i am afraid that it could be a serious security concern?
3. i tried setting permissions to 755 or 775 , but upload fails.
4. i am saving the images in the server and not storing in the database because of performance issues.
what is the best way to do this?
Comment