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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.