Can't detect MIME type when using Zend Zend_File_Transfer_Adapter_Http !
Posted
by mrblue
on Stack Overflow
See other posts from Stack Overflow
or by mrblue
Published on 2010-05-08T14:55:45Z
Indexed on
2010/05/08
14:58 UTC
Read the original article
Hit count: 228
php
|zend-framework
Hi all,
I am writing a small script to upload and detect MIME type, using Zend Framework. For the design purpose, I can't use Zend_Form but normal instead. And I simply apply from the manual :
$adapter = new Zend_File_Transfer_Adapter_Http(); $files = $adapter->getFileInfo(); $mime = $files->getMimeType();
But the system inform that the funcion getMimeType() does not existed. Then, I tried:
$adapter = new Zend_File_Transfer(); $files = $adapter->getFileInfo(); $mime = $files->getMimeType();
This time, it didn't work either. So, how can I get the MIME type ?
Thank you so much for your help
© Stack Overflow or respective owner