upload wmv file

See all posts See thread Reply

Re: upload wmv file new!
by Irineu Jr, 15 years, 4 months ago
Sure...

Without mime check!
system information
- class version : 0.28RC4
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
Fileinfo PECL extension not available
- Checking MIME type with UNIX file() command
MIME returned as video/x-ms-asf
MIME type detected as video/x-ms-asf by UNIX file() command
source variables
- You can use all these before calling process()
file_src_name : C4.wmv
file_src_name_body : C4
file_src_name_ext : wmv
file_src_pathname : /tmp/phpwgBjlU
file_src_mime : video/x-ms-asf
file_src_size : 1318800 (max= 33554432)
file_src_error : 0
process file to ../img/Jobs/
- file size OK
- file mime OK : video/x-ms-asf
- new file name body : 200907290403443d0254fbe965da0309db543722f5ceeb
- file name safe format
- destination variables
file_dst_path : ../img/Jobs/
file_dst_name_body : 200907290403443d0254fbe965da0309db543722f5ceeb
file_dst_name_ext : wmv
- no image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 200907290403443d0254fbe965da0309db543722f5ceeb.wmv
file_dst_pathname : ../img/Jobs/200907290403443d0254fbe965da0309db543722f5ceeb.wmv
- 200907290403443d0254fbe965da0309db543722f5ceeb.wmv doesn't exist already
- no image processing wanted
- process OK


with $handle->allowed = array('video/x-ms-wmv', 'audio/mpeg3', 'audio/mpeg', 'image/*');
system information
- class version : 0.28RC4
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
Fileinfo PECL extension not available
- Checking MIME type with UNIX file() command
MIME returned as video/x-ms-asf
MIME type detected as video/x-ms-asf by UNIX file() command
source variables
- You can use all these before calling process()
file_src_name : C4.wmv
file_src_name_body : C4
file_src_name_ext : wmv
file_src_pathname : /tmp/phpiaUNL6
file_src_mime : video/x-ms-asf
file_src_size : 1318800 (max= 33554432)
file_src_error : 0
process file to ../img/Jobs/
- file size OK
- error: Incorrect type of file.


with $handle->allowed = array('video/x-ms-wmv', 'video/x-ms-asf', 'audio/mpeg3', 'audio/mpeg', 'image/*');

system information
- class version : 0.28RC4
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : en_GB
source is an uploaded file
- upload OK
- file name OK
determining MIME type
- Checking MIME type with Fileinfo PECL extension
Fileinfo PECL extension not available
- Checking MIME type with UNIX file() command
MIME returned as video/x-ms-asf
MIME type detected as video/x-ms-asf by UNIX file() command
source variables
- You can use all these before calling process()
file_src_name : C4.wmv
file_src_name_body : C4
file_src_name_ext : wmv
file_src_pathname : /tmp/phpTIq3bl
file_src_mime : video/x-ms-asf
file_src_size : 1318800 (max= 33554432)
file_src_error : 0
process file to ../img/Jobs/
- file size OK
- file mime OK : video/x-ms-asf
- new file name body : 200907290410013d0254fbe965da0309db543722f5ceeb
- file name safe format
- destination variables
file_dst_path : ../img/Jobs/
file_dst_name_body : 200907290410013d0254fbe965da0309db543722f5ceeb
file_dst_name_ext : wmv
- no image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 200907290410013d0254fbe965da0309db543722f5ceeb.wmv
file_dst_pathname : ../img/Jobs/200907290410013d0254fbe965da0309db543722f5ceeb.wmv
- 200907290410013d0254fbe965da0309db543722f5ceeb.wmv doesn't exist already
- no image processing wanted
- process OK


Now it works fine... congratulation about you fast reply and this magnificent classReply