hi people, my file form element is very simple:
$this->archivo = new Zend_Form_Element_File('archivo');
$this->archivo->setLabel('Archivo:')
->setRequired(true)
->setDestination(UPLOAD_PATH)
->addValidator('Count', false, 1)
->addValidator('Size', false, MAX_FILE_SIZE)
->addValidator('Extension', false, Cobico_Form_Multimedia_SubirArchivo::EXTENSIONES_PERMITIDAS);
$this->addElement($this->archivo);
but, when uploading the file (uploads OK), I try to obtain the MIME type but for every file is the same:
$form->archivo->getMimeType()
It always returns application/octet-stream, no matter what kind of file I'm trying to upload.
Why is this happening, did I miss something in the way? Thanks