Hi
I have installed the Media Plugin in my system (I work on windows
system).
I try to test if all works using directly the Attachment Model.
I try to upload a jpeg but I get always an mime type error.
I have mime_magic installed.
I try to do a bit of backup on code of Media Plugin and I have find
where is the error.
On Transfer Behaviour in the method checkMimeType if i do a pr()
$this->runtime[$Model->alias] I get :
Array
(....
[temporary] => Array
(
[scheme] =>
[host] => localhost
[port] =>
[file] => C:\Windows\Temp\php1D5E.tmp
[mimeType] => application/octet-stream
[size] => 92632
[pixels] => 337460
[permisssion] =>
[dirname] => C:\Windows\Temp
[basename] => php1D5E.tmp
[filename] => php1D5E
[extension] => tmp
[type] => uploaded-file-local
[permission] => 0666
[error] => 0
)
....
The mime type is application/octet-stream and this causes the error.
Can someone give me some suggestion about this?
Many Thanks
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en