Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Unable to change file permission of uploaded file.
tsega
June 2013
I'm on Ubuntu and I'm using the fuelphp Upload class to handle my uploads. Here is my configuration:
$config = array(
'path' =>"path/to/upload/folder",
'auto_rename' => true,
'randomize' => true,
'ext_whitelist' => array('webm', 'ogg', 'mp4'),
'create_path' => true,
'path_chmod' => 0777,
'file_chmod' => 0777,
);
Which I give directly to 'Upload' class 'process' static method like this:
Upload::process($config);
I've set 'file_chmod' to '0777' but when I check the file permission of the uploaded file I don't get a 0777 instead I get a 0644. How can I fix this?
Harro
June 2013
Accepted Answer
Which version of Fuel?
I don't see an obvious reason why that would not work. Does your webserver user have the rights to change the permissions?
tsega
June 2013
Thanks for the help Harro, I needed to change the ownership of my uploads folder to my webserver user.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
June 2013
tsega
June 2013