EllisLab text mark
Advanced Search
     
Permission problem with Image Manipulation Class Resize
Posted: 28 October 2012 04:52 AM   [ Ignore ]
Avatar
Joined: 2012-09-14
9 posts

Hi. When I try resizing images using Image Manipulation Class it says the file does not have write permissions so I manually change it to 777. But when I try using PHP’s function it return an error stating that operation is not allowed. I also tried a possible workaround using php.net chmod reply. But even that failed returning the same error.

I am hosting on a shared server. Where Cpanel is available.

So is there a way I can set default permission for files inside a particular directory ?

Or is there someway I can use the resize function during the upload of the picture ?

Thank You.

 Signature 

Ab Aeterno Scientia Potentia Est

 
Posted: 29 October 2012 04:13 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-11-28
2435 posts

Did you chmod the directly itself?

 
Posted: 29 October 2012 11:29 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2012-09-14
9 posts
Aken - 29 October 2012 04:13 AM

Did you chmod the directly itself?

Yes, I did.

 Signature 

Ab Aeterno Scientia Potentia Est

 
Posted: 29 October 2012 11:30 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2012-09-14
9 posts

I have found a workaround I placed the code for resizing the image along with the code for uploading it and it works without any problem ie, I am resizing the image write after uploading, under the same function.

 Signature 

Ab Aeterno Scientia Potentia Est