Skip to content

Zip file export fails to import #5741

@hawksj

Description

@hawksj

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/

  1. Export a Book as a Zip file
  2. Go to /import
  3. Click to upload the zip file
  4. Click Validate Import
  5. 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

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