my script lets people upload files
I want to read the file's mime type and check it against a whitelist (instead of using file extension because I think mime is safer and prevents broken files)
if it's ok then proceed with upload, sending the mime type to the database and storing it in that file's entry
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum