⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

error on uploading in windows server



Mahmoud Youssef

Mahmoud Youssef
  • profile picture
  • Member

Posted 24 September 2013 - 14:11 PM

I have an error in uploading  just on windows server , the error is "An Error Occurred On Uploading.", I have tested my website on linux server and works fine.

Please help


briggers

briggers
  • profile picture
  • Member

Posted 24 September 2013 - 14:22 PM

In the absence of any other information it sounds as though your upload directory is "write only".

 

Best stick to Linux servers anyway  ;)


Mahmoud Youssef

Mahmoud Youssef
  • profile picture
  • Member

Posted 25 September 2013 - 09:34 AM

Thank you briggers ,I have restriction to use windows server  :blink: 

The directory with 777 permissions and I restrict it in coding.

 

any idea


briggers

briggers
  • profile picture
  • Member

Posted 25 September 2013 - 12:40 PM

Sorry,

 

As far as I am aware - not having used a windows server for some time - you cannot set permissions through php. There is no 0777 mode in windows. You would need to use FileManager (oe whatever it is now called) to set directory or file permission to "read/write for everyone".

 

Maybe the error is caused by the chmod instruction in your code. Set the directories manually and remove any chmod code lines to see what happens.

 

I'll stand corrected if anyone knows better