Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachment size limited to 256MB #1293

Closed
kramester opened this Issue Feb 20, 2019 · 4 comments

Comments

@kramester
Copy link

kramester commented Feb 20, 2019

Describe the bug
I am unable to upload attachments larger than 256MB (according to the error).

Steps To Reproduce

  1. Running Ubuntu 18.04 - used installation script
  2. updated /etc/php/7.2/apache2/php.ini
memory_limit = 2048M
post_max_size = 2048M
upload_max_filesize = 2048M
  1. Go to any page and try an upload file larger that 256MB
    4: Get error "File is too big (filesize). Max filesize: 256MiB."

Screenshots
2d-artist-p40

Configuration:

  • BookStack v0.25.1
  • PHP Version: 7.2.15
  • Apache 2
@ssddanbrown

This comment has been minimized.

Copy link
Member

ssddanbrown commented Feb 20, 2019

Sorry @kramester to see you're hitting issues here.

Looks like this is a limit set in the file-upload library.
We can look ot make this configurable as we have done for the timeout, Shouldn't be too tricky.
Have assigned to the next patch release.

@kramester

This comment has been minimized.

Copy link
Author

kramester commented Feb 20, 2019

Most excellent, thank you!

@ssddanbrown ssddanbrown self-assigned this Mar 8, 2019

@Zeigren

This comment has been minimized.

Copy link

Zeigren commented Mar 22, 2019

How is this fix enabled? I tried adding something like
<script> window.uploadLimit = 512; </script>
to the Custom HTML head content but it didn't change anything.

@ssddanbrown

This comment has been minimized.

Copy link
Member

ssddanbrown commented Mar 22, 2019

@Zeigren Are you on the latest BookStack release?
Do you get the exact same error message? Please screenshot it if you can.

Might be an idea to open a new issue since this one is closed, otherwise comments may be missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.