Unable to import database: "Wrong file type. You can't upload a file of type application/x-zip-compressed"

Are you using our SaaS platform (Baserow.io) or self-hosting Baserow?

Self-hosted

If you are self-hosting, what version of Baserow are you running?

2.3.1

If you are self-hosting, which installation method do you use to run Baserow?

latest docker and docker-compose

What are the exact steps to reproduce this issue?

Hi,

I’m running a self-hosted Baserow instance on Ubuntu using Docker.

I’m trying to migrate a database from one server to another using the built-in Export / Import feature, but the import fails with the following error in the web interface:

“Wrong file type. You can’t upload a file of type application/x-zip-compressed”

Here are the details:

Source Baserow version: 2.3.1
Target Baserow version: 2.3.1
Deployment: Self-hosted on Ubuntu with Docker
Export file: ZIP archive, approximately 1 MB

The ZIP file was created using the built-in export function, and I’m trying to import it without any modifications.

Has anyone encountered this issue before? Is there any additional configuration required to allow ZIP imports, or could this be a bug?

Also, is there a way to import the exported database manually, if the built-in import is not working?

Thanks!

Just a guess until someone more knowledgeable can chime in… Under Admin Settings ->Settings, is Verify import signature enabled? I believe this will cause imports to fail if they come from a “different” Instance ID. Since the export was from a different server this might be causing it to fail, but I’d think there would be a more useful error message than “Wrong file type”.

Option “Verify import signature” - is disabled.

Аnd I’m tried export data tables with Chrome and Firefox.

I have win10 version 1607.

Hello @Efim, did you try exporting structure only? And you could also try to increase server timeout limits.

This is not a server side bug, problem in the header when i exporting things - browser set a wrong header (not “application/zip”).
Maybe my windows version causes this.

You`re tech team need to look into.

Hey @Efim, I will. But first, could you please share the ZIP file with me in a private message? I’ll forward it to the dev team so they can investigate the issue.