- 1

Where to store images in php?

I'm storing images by php predefined function that is move_uploaded_file($_FILES ['file']['tmp_name'],"imgs/".$_FILES['file']['name']); but this directory is accessed by everyone then what to do. After changing chmod 000,755,777 etc. Also tried sql but expand the loading time. .. So, I finally want to know that where to store multimedia datas as images and videos, accept text based datas...

7th Apr 2021, 3:10 PM
Muhammad Belal
Muhammad Belal - avatar
1 Antwort
0
This question duplicates what https://www.sololearn.com/Discuss/2747352/image-post-in-php was left at. You're asking how to store the image securely. The ball is still in your court with that question. Are you sure you want to save to file system now? It sounds like you're sure you want to save to the file system but confirm in the other question's discussion.
7th Apr 2021, 8:20 PM
Josh Greig
Josh Greig - avatar