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