Non picture files like mp4 not working #1543

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

I'm trying to download files, like mp4 videos but they're not working because piwigo only tries to use the direct link like:

Preview is working fine, but by clicking this is tried to load:
upload/2022/10/23/pwg_representative/20221023003559-e34adaf3.jpg 403
upload/2022/10/23/20221023003559-e34adaf3.mp4 403

Nginx (of course) logs the access restrictions:
2022/10/23 01:28:27 [error] 3875859#3875859: *1421 access forbidden by rule, client: , server: , request: "GET /upload/2022/10/23/pwg_representative/20221023003559-e34adaf3.jpg HTTP/2.0", host: "" 2022/10/23 01:28:31 [error] 3875859#3875859: *1421 access forbidden by rule, client: , server: , request: "GET /upload/2022/10/23/20221023003559-e34adaf3.mp4 HTTP/2.0", host: ""
By opening the access to the upload folder on the webserver the whole authentication would be useless and everyone could retrieve the files without permissions.

Edit:
This is happening only on the mobile app -> in the webinterface I can download the file.

I'm trying to download files, like mp4 videos but they're not working because piwigo only tries to use the direct link like: Preview is working fine, but by clicking this is tried to load: upload/2022/10/23/pwg_representative/20221023003559-e34adaf3.jpg 403 upload/2022/10/23/20221023003559-e34adaf3.mp4 403 Nginx (of course) logs the access restrictions: `2022/10/23 01:28:27 [error] 3875859#3875859: *1421 access forbidden by rule, client: , server: , request: "GET /upload/2022/10/23/pwg_representative/20221023003559-e34adaf3.jpg HTTP/2.0", host: "" 2022/10/23 01:28:31 [error] 3875859#3875859: *1421 access forbidden by rule, client: , server: , request: "GET /upload/2022/10/23/20221023003559-e34adaf3.mp4 HTTP/2.0", host: "" ` By opening the access to the upload folder on the webserver the whole authentication would be useless and everyone could retrieve the files without permissions. Edit: This is happening only on the mobile app -> in the webinterface I can download the file. <!-- github-sync-id:1419552748 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1543