Jump to content

uploading media


ibolui

Recommended Posts

hi, i am trying to write a script for uploading of media files (video/audio). i wish to know if there should be any concern for any security issues. as in what validation etc should my script perform..

 

i have done some basic checks such as the file extension, filesize and is_uploaded_file.

for images, i tried using imagecreatedfromjepg etc to see whether the uploaded file is a valid image. likewise i would like to know if there is also any other ways to check whether the uploaded media files are valid..

 

also, will there be a problem if the uploaded images/medias contain viruses?

Link to comment
https://forums.phpfreaks.com/topic/109345-uploading-media/
Share on other sites

Seems like if you are doing file extension, size, and upload checks, that you are really doing pretty well in making sure it's what you want it to be. And unless you provoke the file in some way, it can't just start doing anything to the server, so you should be safe.

 

FlyingIsFun1217

Link to comment
https://forums.phpfreaks.com/topic/109345-uploading-media/#findComment-561689
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.