i already did that but its not working , i can still upload such files ,enter my site and see by urself
Try to change 'application/x-msdownload' in the code to 'application/octet-stream'iguanashare4743 said:i already did that but its not working , i can still upload such files ,enter my site and see by urself
// Edit the 3 options in the line below within the single quotes '' to prevent file uploads
if($fileUpload->type == 'application/octet-stream' && $fileUpload->size >= '61440' && $fileUpload->size <= '454660')
{
$fileUpload->error = t('classuploader_kill_upload_error', 'The file you are uploading is not allowed to be uploaded to this site.');
}
INSERT INTO site_config VALUES
(null, 'blocked_file_hashes', '', 'The file md5 hashes that are not allowed to be uploaded. Separate items with a comma, without spaces.', '', 'string', 'File Uploads');
$blocked = explode(',', SITE_CONFIG_BLOCKED_FILE_HASHES);
foreach ($blocked as $filehash)
{
if(md5_file($uploadedFile) == $filehash)
{
$fileUpload->error = t('classuploader_kill_upload_error', 'The file you are uploading is not allowed to be uploaded to this site.');
}
}