I want to upload .3gp video files to server via PHP code. I checked the mime type of 3gp video files by ‘echo’ video type of file, it gives it as application/octet-stream.
I have added a check below to restrict it to only few video format files, as below:
if($_video_type != 'video/x-ms-wmv' && $_video_type != 'application/octet-stream' && $_video_type != 'video/avi' && $_video_type != 'video/mpeg'){
$_error_videotitle = 'Only WMV, MP4, MPEG, FLV, 3GP videos are allowed';
$is_errors = true;
}
But its not uploading 3gp file, it still giving error 🙁
Please help, thanks!
Did you copy pasted your code here? If so, then note that you have an additional blank space in the end.