Letractively / osclass

Automatically exported from code.google.com/p/osclass
0 stars 0 forks source link

Upload folder permission #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to add new item
2. If directory is not writable, we get 3 warnings from PHP

Warning: 
move_uploaded_file(/Users/max/Projects/osclass/webapp/oc-content/uploads/1) 
[function.move-uploaded-file]: failed to open stream: Permission denied in 
/Users/max/Projects/osclass/webapp/item.php  on line 152

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 
'/Applications/XAMPP/xamppfiles/temp/phpLwHaMd' to 
'/Users/max/Projects/osclass/webapp/oc-content/uploads/1' in 
/Users/max/Projects/osclass/webapp/item.php on line 152

Warning: Cannot modify header information - headers already sent by (output 
started at 
/Users/max/Projects/osclass/webapp/item.php:152) in 
/Users/max/Projects/osclass/webapp/oc-includes/osclass/utils.php on line 4
3.

What is the expected output? What do you see instead?
See message that directory is not writable, or even better, check if it is 
writable during 
installation.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by max.podu...@gmail.com on 24 Feb 2010 at 10:04

GoogleCodeExporter commented 9 years ago

Original comment by santiago...@gmail.com on 5 Mar 2010 at 12:09