pwg.images.setInfo problem #2060

Closed
opened 2026-10-05 01:05:06 +02:00 by adam · 1 comment
Owner

In the Piwigo web API (web-services) explorer, pwg.images.setInfo sends a "comment" data element. but it should be "description".

In the Piwigo web API (web-services) explorer, pwg.images.setInfo sends a "comment" data element. but it should be "description". <!-- github-sync-id:3103463799 -->
adam closed this issue 2026-10-05 01:05:06 +02:00
Author
Owner

In Piwigo's database structure, the field is called comment and not description. This is why, in pwg.images.setInfo, we also use comment, in order to maintain consistency between the database and the code, especially for developers.

MariaDB [piwigo_db]> desc piwigo_images;
+------------------------+-----------------------+------+-----+---------------------+-------------------------------+
| Field                  | Type                  | Null | Key | Default             | Extra                         |
+------------------------+-----------------------+------+-----+---------------------+-------------------------------+
| id                     | mediumint(8) unsigned | NO   | PRI | NULL                | auto_increment                |
| file                   | varchar(255)          | NO   |     |                     |                               |
| date_available         | datetime              | NO   | MUL | 1970-01-01 00:00:00 |                               |
| date_creation          | datetime              | YES  | MUL | NULL                |                               |
| name                   | varchar(255)          | YES  |     | NULL                |                               |
| comment                | text                  | YES  |     | NULL                |                               |
In Piwigo's database structure, the field is called `comment` and not `description`. This is why, in `pwg.images.setInfo`, we also use comment, in order to maintain consistency between the database and the code, especially for developers. ```sql MariaDB [piwigo_db]> desc piwigo_images; +------------------------+-----------------------+------+-----+---------------------+-------------------------------+ | Field | Type | Null | Key | Default | Extra | +------------------------+-----------------------+------+-----+---------------------+-------------------------------+ | id | mediumint(8) unsigned | NO | PRI | NULL | auto_increment | | file | varchar(255) | NO | | | | | date_available | datetime | NO | MUL | 1970-01-01 00:00:00 | | | date_creation | datetime | YES | MUL | NULL | | | name | varchar(255) | YES | | NULL | | | comment | text | YES | | NULL | | ``` <!-- github-comment-id:2976557344 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2060