Reply to Re: upload wmv file

Re: upload wmv file new!
by Irineu Jr, 14 years, 9 months ago
It still dosent work with me...

If I use mime check = false
system information
- class version : 0.26
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : pt_BR
source is an uploaded file
- upload OK
- file name OK
- MIME type detected as text/plain by mime_content_type()
- source variables
file_src_name : C4.wmv
file_src_name_body : C4
file_src_name_ext : wmv
file_src_pathname : /tmp/phppMbKma
file_src_mime : text/plain
file_src_size : 1318800 (max= 33554432)
file_src_error : 0
process file to ../img/Jobs/
- file size OK
- script C4.wmv renamed as C4.wmv.txt!
- file mime OK : text/plain
- new file name body : 22f5ceeb
- file name safe format
- destination variables
file_dst_path : ../img/Jobs/
file_dst_name_body : 22f5ceeb
file_dst_name_ext : wmv.txt
- no image operation, keep extension
- checking for auto_rename
- destination file details
file_dst_name : 22f5ceeb.wmv.txt
file_dst_pathname : ../img/Jobs/22f5ceeb.wmv.txt
- 22f5ceeb.wmv.txt doesn't exist already
- no image processing wanted
- process OK


and if I use mimecheck = true and allowed = array('video/x-ms-wmv');
Incorrect type of file.system information
- class version : 0.26
- GD version : 2.0
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- language : pt_BR
source is an uploaded file
- upload OK
- file name OK
- MIME type detected as text/plain by mime_content_type()
- source variables
file_src_name : C4.wmv
file_src_name_body : C4
file_src_name_ext : wmv
file_src_pathname : /tmp/phpsj9uVa
file_src_mime : text/plain
file_src_size : 1318800 (max= 33554432)
file_src_error : 0
process file to ../img/Jobs/
- file size OK
- script C4.wmv renamed as C4.wmv.txt!


Why it understand text/plain if $_FILE["filename"]["type"] return video/x-ms-wmv!? o.O

Thanks for the help, and great class =)Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important