Jump to content

how to add .rar extention to this script


hailam

Recommended Posts

I am running file hosting script, but the problem is that the script is not allowing me to upload .rar files. Can anyone tell me how to add .rar extention to the lines below:

 

$valid_file_types = array(

  array('avi', 'video/avi', 'Video Clip'),

  array('avi', 'video/msvideo', 'Video Clip'),

  array('avi', 'video/x-msvideo', 'Video Clip'),

  array('jpg', 'image/jpeg', 'JPG Image'),

  array('jpeg', 'image/jpeg', 'JPEG Image'),

  array('jpg', 'image/pjpeg', 'JPG Image'),

  array('jpeg', 'image/pjpeg', 'JPEG Image'),

  array('zip', 'application/x-zip-compressed', 'Compressed Zip File'),

  array('zip', 'application/zip', 'Compressed Zip File'),

  array('zip', 'multipart/x-zip', 'Compressed Zip File')

);

 

Link to comment
https://forums.phpfreaks.com/topic/155435-how-to-add-rar-extention-to-this-script/
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.