I am running the latest version of Ghost (3.10.0) from a Digital Ocean Ghost droplet. Installation was seamless (thank you!). I am trying to import data from an older version of Ghost (3.5.0) to this version, but am getting the error:
Import failed Request contains an unknown or unsupported file type.
Could anyone advise on what I can do to debug / resolve this please?
Hmm thatâs quite strange that youâre having trouble importing from 3.5 -> 3.10. Have you double checked that your JSON file wasnât corrupted or modified in anyway? How large is your JSON file?
Iâve also tried exporting again. But I get the same error. Interestingly, if I attempt to import on the same blog (v3.5.0) I get the same import failed error.
Frustrantingly - I upgraded both sites to v3.11.0. I then did another export on the source site and tried to import that. I get the same import failed error on both sites - the source and the destination.
I also went into the source site via SSH, did a manual âghost exportâ and tried to import that (on both sites). Same failure.
@Hannah comes through with the power tools, thank you!!
puts on hard hat
Ok, so I did as suggested. Strangely, nothing comes through via ghost log NOR Dev/Network (in Chrome). When I say nothing, I mean literally nothing. I select my JSON to import, and when I click âImportâ, nothing gets updated in ghost log -f nor the browser dev tools network tab.
However, I did have a look at the console in my dev tools and see this:
Uncaught Error: Request contains an unknown or unsupported file type.
vendor.min-887691bd59779cd57846dea68907c7e8.js:8680
at e._validate (ghost.min-96c41a661b8de7ce6eca2988656c5c92.js:980)
at e.onUpload (ghost.min-96c41a661b8de7ce6eca2988656c5c92.js:974)
at F._join (vendor.min-887691bd59779cd57846dea68907c7e8.js:3756)
at F.join (vendor.min-887691bd59779cd57846dea68907c7e8.js:3727)
at d (vendor.min-887691bd59779cd57846dea68907c7e8.js:2837)
at vendor.min-887691bd59779cd57846dea68907c7e8.js:1383
at o (vendor.min-887691bd59779cd57846dea68907c7e8.js:2762)
at e.onUpload (vendor.min-887691bd59779cd57846dea68907c7e8.js:1383)
at e.upload (ghost.min-96c41a661b8de7ce6eca2988656c5c92.js:138)
at e.send (vendor.min-887691bd59779cd57846dea68907c7e8.js:2456)
I took your cue and tried a different browser (Firefox) and the import worked seamlessly. I shouldâve tried that earlier, sorry for the inconvenience.
Fwiw, I am running Ghost 3.11.0 on both sites (export/import). My Chrome is Version 81.0.4044.43 (Official Build) beta (64-bit)without any ad-blocker extensions on Windows 8.1 Pro.
This likely means that Windows Chrome is sending some unrecognised mime-type for the file, weâll likely need to improve the error handling to catch what it is. Will share with the team
I have the same issue on the hosted version of Ghost.
Tried to import the ZIP file from an earlier installation (exported through ghost, and works to unzip on my computer). I tried both Safari and Chrome- same error.
The ZIP file is about 35 MB.
Howâd you generate the .zip, and whatâs the structure inside if you take a look at it locally?
The current Ghost export generates .json, not .zip, so Iâm curious to know how this file was generated. You arenât accidentally uploading a theme file, are you?
I exported this back in 2021, I believe it was through the export function in Ghost back then?
Hm I am not sure could it be a theme backup? I think it was an overal backup of the Ghost instance, but must have been generated through the admin panel on the siteâŚ