Jump to content

Image Chmod


forumnz

Recommended Posts

You cannot chmod them until they are placed somewhere on the system. *I think*.....

 

So place the

chmod("/path/to/filename.jpg", 0777);

 

directly after your move_uploaded_file() chunk, and replace the path with the path variable you moved it to including the

$_FILES['field_name']['name']

 

If you need more help here, then post the upload script code ya got and we'll show ya where to put it so that it is dynamic and will automatically chmod the file once it is moved to the place you want it to go.

 

Nate

Link to comment
https://forums.phpfreaks.com/topic/50904-image-chmod/#findComment-250370
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.