I have a weird issue where a call to pwg.images.addSimple fails when the image in question is added with the tags parameter present.

Piwigo is 14.1.0
Apache2 2.4.57-2
php 8.2

on Debian Bookworm.

I am pretty sure this used to work, but since I upgraded Piwigo and PHP I cannot tell you which of the two might have broken it.
There is of course also a small chance that I am doing something weird in Shotwell's upload code. 

Failure mode is either a 501 Missing "method" name if the tags are hierarchical (eg. "/foo/bar/baz") or a 401 Access denied if its just plain tags.

Working form data:

```
> Host: jensge.org
> 
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Disposition: form-data; name="name"
> 
> DCIM_00001_1.png
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Disposition: form-data; name="method"
> 
> pwg.images.addSimple
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Disposition: form-data; name="category"
> 
> 6
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Disposition: form-data; name="level"
> 
> 8
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Type: image/jpeg
> Content-Disposition: form-data; filename=DCIM_00001_1.png.jpg; name=image
> 
> ����
```

Non-working form data, resulting in "401 Access denied" error:

```
> Host: jensge.org
> 
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="name"
> 
> IMG_0059.JPG
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="method"
> 
> pwg.images.addSimple
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="category"
> 
> 6
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="level"
> 
> 8
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="tags"
> 
> Hamburg,Wandern
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Type: image/jpeg
> Content-Disposition: form-data; filename=IMG_0059.JPG; name=image
> 
> ����
  
```
pwg.images.addSimple fails when supplying tags
This is a GitHub Issue
repo:Piwigo
owner:Piwigo
Title : pwg.images.addSimple fails when supplying tags
Issue date:

--- start body ---
I have a weird issue where a call to pwg.images.addSimple fails when the image in question is added with the tags parameter present.

Piwigo is 14.1.0
Apache2 2.4.57-2
php 8.2

on Debian Bookworm.

I am pretty sure this used to work, but since I upgraded Piwigo and PHP I cannot tell you which of the two might have broken it.
There is of course also a small chance that I am doing something weird in Shotwell's upload code. 

Failure mode is either a 501 Missing "method" name if the tags are hierarchical (eg. "/foo/bar/baz") or a 401 Access denied if its just plain tags.

Working form data:

```
> Host: jensge.org
> 
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Disposition: form-data; name="name"
> 
> DCIM_00001_1.png
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Disposition: form-data; name="method"
> 
> pwg.images.addSimple
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Disposition: form-data; name="category"
> 
> 6
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Disposition: form-data; name="level"
> 
> 8
> --588d05a9fcd087d51198ec360f1ba1b725c79def406bf6a2e745877851d0b96f
> Content-Type: image/jpeg
> Content-Disposition: form-data; filename=DCIM_00001_1.png.jpg; name=image
> 
> ����
```

Non-working form data, resulting in "401 Access denied" error:

```
> Host: jensge.org
> 
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="name"
> 
> IMG_0059.JPG
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="method"
> 
> pwg.images.addSimple
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="category"
> 
> 6
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="level"
> 
> 8
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Disposition: form-data; name="tags"
> 
> Hamburg,Wandern
> --cc6dd8138b0a340f9f29a319659f3fac31ef95b4301f83b39253b76fb254d8d2
> Content-Type: image/jpeg
> Content-Disposition: form-data; filename=IMG_0059.JPG; name=image
> 
> ����
  
```
--- end body ---
