views:

18

answers:

0

I have Zend Server CE running on Windows 7. By Default I have Apache running as a Service, Log On as Local System Account.

My upload Action saves an uploaded file to its Destination OK, however the permission on the file is set to only SYSTEM, Administrators and IIS_IUSERS.

Once uploaded, I cannot open it or move it using PHP. I am using the following code to receive the file in Zend Framework on 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 can I set permissions so that I can use the uploaded file in php/zend