I have a Zend Server CE server running on Windows 7. By default, Apache works as a service, log in as a local system account.
My download The action saves the downloaded file to its destination OK, but the file permission is set only on SYSTEM, Administrators and IIS_IUSERS.
After loading, I cannot open it or move it using PHP. I use the following code to get the file in the Zend Framework in POST:
$upload = new Zend_File_Transfer_Adapter_Http(); $upload->setDestination($_SERVER['DOCUMENT_ROOT']. "/".$upFolder); if (!$upload->isValid()) { $messages = $upload->getMessages(); throw new Exception( implode("\n", $messages)); }else{ try { $upload->receive(); } catch (Zend_File_Transfer_Exception $e) { throw new Exception('Bad file: '.$e->getMessage()); }
How to set permissions so that I can use the downloaded file in php / zend
steve source share