chrome upload rar file

See all posts Reply

chrome upload rar file new!
by devlism, 13 years, 5 months ago
I'm thai and i have question :

test by form in example :

class.upload.php test forms

file not uploaded to the wanted location
Error: MIME type can't be detected.

file not uploaded to the wanted location
Error: MIME type can't be detected.



what's solution?

Thank you very much.Reply
Re: chrome upload rar file new!
by colin, 13 years, 5 months ago
What does the log say? The MIME type detection is detailed in the log.

Maybe there is a missing MIME type, the log will tell youReply
Re: chrome upload rar file new!
by devlism, 13 years, 5 months ago
class.upload.php test forms

file not uploaded to the wanted location
Error: MIME type can't be detected.
file not uploaded to the wanted location
Error: MIME type can't be detected.
do another test

system information
- class version : 0.30
- operating system : WINNT
- PHP version : 5.2.3
- GD version : 2.0.34
- supported image types : png jpg gif bmp
- open_basedir : no restriction
- upload_max_filesize : 2M (2097152 bytes)
- 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
UNIX file() command not availabled
- Checking MIME type with mime.magic file (mime_content_type())
mime_content_type() is not available
- Checking MIME type with getimagesize()
getimagesize() failed
- MIME type detected as by browser
- Try to guess MIME type from file extension (rar): MIME type set to
- MIME type couldn't be detected! ()
source variables
- You can use all these before calling process()
file_src_name : 2checkout.rar
file_src_name_body : 2checkout
file_src_name_ext : rar
file_src_pathname : C:\WINDOWS\TEMP\php27D.tmp
file_src_mime :
file_src_size : 3742 (max= 2097152)
file_src_error : 0
process file to test\
- file size OK
- error: MIME type can't be detected.
process file to test\
- file size OK
- error: MIME type can't be detected.
cleanup
- delete temp file C:\WINDOWS\TEMP\php27D.tmp
Reply
Re: chrome upload rar file new!
by colin, 13 years, 5 months ago
Fileinfo PECL extension not available
UNIX file() command not availabled
mime_content_type() is not available
getimagesize() failed
MIME type couldn't be detected! ()


The excerpts from the log above indicate that your server is not able to detect MIME types. You need to make sure that at least one method works. You can configure your server to do so, or else ask you hosting provider.Reply
Re: chrome upload rar file new!
by devlism, 13 years, 5 months ago
I test in my local computer.

this is my phpinfo http://demo.devlism.com/phpinfo/

thank you.Reply
Re: chrome upload rar file new!
by colin, 13 years, 5 months ago
You need to make sure that you have at least Fileinfo PECL extension, or mime_magic extension activated. As you are on Windows, the UNIX file command will not be available.

On Windows, you need to activate mime_magic it like this in your php.ini
[mime_magic]
mime_magic.debug = On
mime_magic.magicfile = "c:\php\extras\magic.mime"

Note that I am not supporting the class on Windows, and will not be able to help further when it comes to the server configuration of MIME type detection methodsReply