File permission after upload is wrong #768

Open
opened 2026-10-05 00:16:41 +02:00 by adam · 0 comments
Owner

Hi,

I'm facing an issue that, my uploaded photo has 640 permission instead of 644, so I can't access the photo by 403 error code.

By checking the code in functions_upload.inc.php I see that the function chmod is not working properly.

My case, I don't use the Piwigo upload api, but using an other service, and when have the file I use the function add_uploaded_file as Piwigo does.

Could someone please suggest me the solution? Thanks.

Hi, I'm facing an issue that, my uploaded photo has 640 permission instead of 644, so I can't access the photo by 403 error code. By checking the code in `functions_upload.inc.php` I see that the function `chmod` is not working properly. My case, I don't use the Piwigo upload api, but using [an other service](https://tus.io/), and when have the file I use the function `add_uploaded_file` as Piwigo does. Could someone please suggest me the solution? Thanks. <!-- github-sync-id:304241481 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#768