0

Hai,
pls help me , I want to upload script for mp3 only,
I have already an exemption sript but when it use to upload a mp3 file, then it show as "Please enter a valid upload". the script is below

if( $upload_Mime_Type != "audio/32kadpcm" AND $upload_Mime_Type != "audio/basic" AND $upload_Mime_Type != "audio/DAT12" AND $upload_Mime_Type != "audio/G.722.1" AND $upload_Mime_Type != "audio/L16" AND $upload_Mime_Type != "audio/L20" AND $upload_Mime_Type != "audio/L24" AND $upload_Mime_Type != "audio/MP4A-LATM" AND $upload_Mime_Type != "audio/mpa-robust" AND $upload_Mime_Type != "audio/mpeg" AND $upload_Mime_Type != "audio/parityfec" AND $upload_Mime_Type != "audio/prs.sid" AND $upload_Mime_Type != "audio/telephone-event" AND $upload_Mime_Type != "audio/tone" AND $upload_Mime_Type != "audio/vnd.cisco.nse" AND $upload_Mime_Type != "audio/vnd.cns.anp1" AND $upload_Mime_Type != "audio/vnd.cns.inf1" AND $upload_Mime_Type != "audio/vnd.digital-winds" AND $upload_Mime_Type != "audio/vnd.everad.plj" AND $upload_Mime_Type != "audio/vnd.lucent.voice" AND $upload_Mime_Type != "audio/vnd.nortel.vbk" AND $upload_Mime_Type != "audio/vnd.nuera.ecelp4800" AND $upload_Mime_Type != "audio/vnd.nuera.ecelp7470" AND $upload_Mime_Type != "audio/vnd.nuera.ecelp9600" AND $upload_Mime_Type != "audio/vnd.octel.sbc" AND $upload_Mime_Type != "audio/vnd.qcelp" AND $upload_Mime_Type != "audio/vnd.rhetorex.32kadpcm" AND $upload_Mime_Type != "audio/vnd.vmx.cvsd" )
{
unlink($upload_Temp);
die("<p align='center'><font face='Arial' size='3' color='#FF0000'>Please enter a valid upload</font></p>");
}

Edited by mike_2000_17: Fixed formatting

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by sudeepjd
0

Please let us know as to how you are pulling the value for the variable $upload_Mime_Type.

Will see if I can help you out.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.