API PUT methods don't accept mulitpart data, as required for some endpoints #2989

Open
opened 2026-02-05 05:56:20 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @reitbauer on GitHub (Aug 22, 2022).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I have tried to update the cover of a shelve with the API.
I use the Insomnia client for this.
If i send an "normal" put request with json data in the body, the update of name, description, books and tags works fine.
But if i send a multipart request to update the image, nothing will be updated. Not the name, not the description, no other field.
These are the props from the docs:
image
In a Multipart Request it's not possible to send an array.

I hope someone can help me, to solve my problem.

Exact BookStack Version

v22.07.3

Log Content

No response

PHP Version

No response

Hosting Environment

Docker: lscr.io/linuxserver/bookstack

Originally created by @reitbauer on GitHub (Aug 22, 2022). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I have tried to update the cover of a shelve with the API. I use the Insomnia client for this. If i send an "normal" put request with json data in the body, the update of name, description, books and tags works fine. But if i send a multipart request to update the image, nothing will be updated. Not the name, not the description, no other field. These are the props from the docs: <img width="673" alt="image" src="https://user-images.githubusercontent.com/31218726/185920291-c3db100d-dcda-4204-b146-f33be40fee4e.png"> In a Multipart Request it's not possible to send an array. I hope someone can help me, to solve my problem. ### Exact BookStack Version v22.07.3 ### Log Content _No response_ ### PHP Version _No response_ ### Hosting Environment Docker: lscr.io/linuxserver/bookstack
OVERLORD added the 🐛 Bug🏭 Back-End labels 2026-02-05 05:56:20 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2989