Skip to content

POST api/image-gallery reurn 500 and no content #5338

@GamerClassN7

Description

@GamerClassN7

Describe the Bug

when i trying to upload, ima with this request

$headers=@{}
$headers.Add("Content-Type", "multipart/form-data; boundary=---011000010111000001101001")
$headers.Add("Authorization", "Token ")
$response = Invoke-RestMethod -Uri '' -Method POST -Headers $headers -ContentType 'multipart/form-data; boundary=---011000010111000001101001' -Body '-----011000010111000001101001
Content-Disposition: form-data; name="type"

gallery
-----011000010111000001101001
Content-Disposition: form-data; name="uploaded_to"

196817
-----011000010111000001101001
Content-Disposition: form-data; name="image"; filename="2821d7ed-da77-47b2-940a-7e3905f4e94f.jpeg"
Content-Type: image/jpeg


-----011000010111000001101001--

Steps to Reproduce

Op api client of your choice and try to upload file

Expected Behaviour

upload file

Screenshots or Additional Context

image

Browser Details

No response

Exact BookStack Version

BookStack v24.10.2 https://docs.linuxserver.io/images/docker-bookstack/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions