You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you able to add support for serving files from the pwg_format folder (such as raw / psd / etc)?
This is supported within the standard piwigo server for the galleries (or other) sites.
to summarise,
if you create a folder in the galleries sub folder of your server, add a file named xyz.jpg and then a child folder pwg_format with a child file xyz.raw for example, then after synchronising, the pwg_format folder is a secret folder, but the items in that appear as download options for the file, a bit like derivatives file sizes.
In the website, the download of this alternative format file is handled by the actions.php file.
I'm trying to add support for this to the webservices api (in the PiwigoClientWsExt plugin for now).
I've got the pwg.images.getInfo to return the various formats, and I could give them any URI I wish I guess, but I thought the following seemed as logical as any:
//
where relative server path would be (for example): /galleries/test/pwg_format (presuming the main image is in test child folder of the galleries site)
filename could be <filename_wo_ext>.psd (for the .psd format file).
I'm not clear why handling these was done entirely differently to standard derivatives, but, given it is...
The text was updated successfully, but these errors were encountered:
extorn
changed the title
get.php
get.php - lack of support for pwg_format located files (within Piwigo sites)
Feb 16, 2021
With the latest version of the android app, PiwigoClient, the uri requested gives the following error for my test file:
Fatal error: Uncaught Exception: Could not validate path (./galleries/galleries_test/pwg_format/20210203_074809.psd) actually belong to image (5415) (./_data/i/galleries/galleries_test/pwg_representative/20210203_074809) in /config/www/Piwigo-11.3.0/plugins/piwigo_privacy/helper_funcs.inc.php:25 Stack trace: #0 /config/www/Piwigo-11.3.0/plugins/piwigo_privacy/helper_funcs.inc.php(249): pwg_privacy_error('Could not valid...') #1 /config/www/Piwigo-11.3.0/plugins/piwigo_privacy/get.php(70): pwg_privacy_verify_access('5415', './galleries/gal...') #2 {main} thrown in /config/www/Piwigo-11.3.0/plugins/piwigo_privacy/helper_funcs.inc.php on line 25
Are you able to add support for serving files from the pwg_format folder (such as raw / psd / etc)?
This is supported within the standard piwigo server for the galleries (or other) sites.
to summarise,
if you create a folder in the galleries sub folder of your server, add a file named xyz.jpg and then a child folder pwg_format with a child file xyz.raw for example, then after synchronising, the pwg_format folder is a secret folder, but the items in that appear as download options for the file, a bit like derivatives file sizes.
In the website, the download of this alternative format file is handled by the actions.php file.
I'm trying to add support for this to the webservices api (in the PiwigoClientWsExt plugin for now).
I've got the pwg.images.getInfo to return the various formats, and I could give them any URI I wish I guess, but I thought the following seemed as logical as any:
//
where relative server path would be (for example): /galleries/test/pwg_format (presuming the main image is in test child folder of the galleries site)
filename could be <filename_wo_ext>.psd (for the .psd format file).
I'm not clear why handling these was done entirely differently to standard derivatives, but, given it is...
The text was updated successfully, but these errors were encountered: