Skip to content

Uploading a file in a book is failing with a 422 http code #1488

@nLenouvelProxiad

Description

@nLenouvelProxiad

Cannot upload an attachment in a book to attach it into the book

Steps To Reproduce

  1. Go to Books
  2. Add a new book
  3. Select the attachment icon on the right tab
  4. Click on "upload a file" and select it
  5. In the network, you can see a 422 http code ( Unprocessable Entity) is returned with that message {"file":["validation.uploaded"]}
  6. At the same time as 5., in the console you can see :
POST https://rtfm.proxiad-axe-seine.com/attachments/upload 422 (Unprocessable Entity)
value @ app.js?version=v0.25.5:51
value @ app.js?version=v0.25.5:51
(anonymous) @ app.js?version=v0.25.5:51
(anonymous) @ app.js?version=v0.25.5:51
transformFile @ app.js?version=v0.25.5:51
o @ app.js?version=v0.25.5:51
value @ app.js?version=v0.25.5:51
value @ app.js?version=v0.25.5:51
value @ app.js?version=v0.25.5:51
value @ app.js?version=v0.25.5:51
value @ app.js?version=v0.25.5:51
(anonymous) @ app.js?version=v0.25.5:51
setTimeout (async)
value @ app.js?version=v0.25.5:51
(anonymous) @ app.js?version=v0.25.5:51
accept @ app.js?version=v0.25.5:51
value @ app.js?version=v0.25.5:51
value @ app.js?version=v0.25.5:51
(anonymous) @ app.js?version=v0.25.5:51

Expected behavior
I can upload and link a file to my book

Screenshots

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): 0.25.5
  • PHP Version: have to ask
  • Hosting Method (Nginx/Apache/Docker): have to ask

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions