-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Describe the Bug
When attempting to import a Zip file that has been exported from another Bookstack instance at /import, the page just whirls after clicking "Validate Import". Eventually, after much time, the page may show the error "The file could not be uploaded. The server may not accept files of this size." Maximum file sizes have not been changed from Bookstack defaults. The Zip file I am working with is 2.5MB in size according to Windows.
The import also fails when re-importing back into the same server it was exported from, with the same behaviour.
Steps to Reproduce
Following the user documentation available here: https://www.bookstackapp.com/docs/user/export-import/
- Export a Book as a Zip file
- Go to /import
- Click to upload the zip file
- Click Validate Import
- Nothing happens, page spins and eventually returns "The file could not be uploaded. The server may not accept files of this size."
I have checked laravel.log and have not seen any errors relating to imports.
Expected Behaviour
The book should be successfully imported with all child content.
Screenshots or Additional Context
Exporting and importing chapters does work successfully and I have been able to workaround the issue by doing this, but it is considerably more labour for large books or collections of content. The parent book must also be manually recreated in the destination.
The documentation at https://www.bookstackapp.com/docs/user/export-import/ seems to be at odds with #5210 that states that importing Books is not supported.
Browser Details
Edge 138.0.3351.109 on Windows 10 22H2
Exact BookStack Version
v25.05.2