[Bug] Attachment Upload Issue #2112

Closed
opened 2026-02-05 02:57:25 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @athornfam2 on GitHub (Feb 20, 2021).

Describe the bug
Unable to upload attachments to existing or new articles.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Open a recent page
  2. Click Edit
  3. Click on the paperclip
  4. Drag and drop or file upload a document

Expected behavior
It should upload the attachment, process it, and add it to the article.

Screenshots
2021-02-20 14_57_43-Editing Page Create SCCM Device Col  _ BookStack

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings): v0.31.6
  • PHP Version: 7.2.24
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context
None

Originally created by @athornfam2 on GitHub (Feb 20, 2021). **Describe the bug** Unable to upload attachments to existing or new articles. **Steps To Reproduce** Steps to reproduce the behavior: 1. Open a recent page 2. Click Edit 3. Click on the paperclip 4. Drag and drop or file upload a document **Expected behavior** It should upload the attachment, process it, and add it to the article. **Screenshots** ![2021-02-20 14_57_43-Editing Page Create SCCM Device Col _ BookStack](https://user-images.githubusercontent.com/74559383/108607129-8772de80-738c-11eb-806b-8dd0a074c5e0.png) **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings): v0.31.6 - PHP Version: 7.2.24 - Hosting Method (Nginx/Apache/Docker): Apache **Additional context** None
Author
Owner

@ssddanbrown commented on GitHub (Feb 20, 2021):

Hi @athornfam2,
2MB is the default limit in a lot of cases on Apache.
Have you tried following the guidance here to increase the limit?: https://www.bookstackapp.com/docs/admin/upload-config/#changing-upload-limits

@ssddanbrown commented on GitHub (Feb 20, 2021): Hi @athornfam2, 2MB is the default limit in a lot of cases on Apache. Have you tried following the guidance here to increase the limit?: https://www.bookstackapp.com/docs/admin/upload-config/#changing-upload-limits
Author
Owner

@athornfam2 commented on GitHub (Feb 20, 2021):

Hi @athornfam2,
2MB is the default limit in a lot of cases on Apache.
Have you tried following the guidance here to increase the limit?: https://www.bookstackapp.com/docs/admin/upload-config/#changing-upload-limits

I saw that but I thought the default was 10MB for Apache?

Update: That was the issue. upload_max_filesize was set to 2 MB. Change it to 10 MB and restarted the service. All is working. The topic can be marked as resolved.

@athornfam2 commented on GitHub (Feb 20, 2021): > Hi @athornfam2, > 2MB is the default limit in a lot of cases on Apache. > Have you tried following the guidance here to increase the limit?: https://www.bookstackapp.com/docs/admin/upload-config/#changing-upload-limits I saw that but I thought the default was 10MB for Apache? Update: That was the issue. upload_max_filesize was set to 2 MB. Change it to 10 MB and restarted the service. All is working. The topic can be marked as resolved.
Author
Owner

@ssddanbrown commented on GitHub (Feb 20, 2021):

Checking this again, Apache often doesn't have limits itself but 2MB is the limit for at least one of the PHP options; So you'll need to check/change the options for the PHP config that Apache is using.

@ssddanbrown commented on GitHub (Feb 20, 2021): Checking this again, Apache often doesn't have limits itself but 2MB is the limit for at least one of the PHP options; So you'll need to check/change the options for the PHP config that Apache is using.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2112