# Import failed - ghost blog import failed "Request contains an unknown or unsupported file type."

**URL:** <https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587>\
**Category:** Developer help\
**Created:** [March 10, 2020, 6:46pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587 "2020-03-10T18:46:50Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![BGD](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BGD](https://forum.ghost.org/u/BGD)\
**Post date:** [March 10, 2020, 6:46pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/1 "2020-03-10T18:46:50Z")

</div>

Hello,

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?

Thank you

---

<div class="post-metadata">

**Author:** ![ijongkim](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ijongkim/32/6186_2.png) [@ijongkim](https://forum.ghost.org/u/ijongkim)\
**Post date:** [March 10, 2020, 7:41pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/2 "2020-03-10T19:41:43Z")

</div>

How are you trying to import it? Using the JSON import feature?

---

<div class="post-metadata">

**Author:** ![BGD](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BGD](https://forum.ghost.org/u/BGD)\
**Post date:** [March 10, 2020, 7:58pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/3 "2020-03-10T19:58:19Z")

</div>

@ijongkim - yes, that’s right.

---

<div class="post-metadata">

**Author:** ![ijongkim](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ijongkim/32/6186_2.png) [@ijongkim](https://forum.ghost.org/u/ijongkim)\
**Post date:** [March 10, 2020, 10:19pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/4 "2020-03-10T22:19:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![BGD](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BGD](https://forum.ghost.org/u/BGD)\
**Post date:** [March 11, 2020, 12:45am UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/5 "2020-03-11T00:45:40Z")

</div>

It opens fine in SublimeText. And according to [JSONlint.com](http://JSONlint.com) it’s “valid JSON”. :/

---

<div class="post-metadata">

**Author:** ![BGD](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BGD](https://forum.ghost.org/u/BGD)\
**Post date:** [March 11, 2020, 1:59am UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/6 "2020-03-11T01:59:51Z")

</div>

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. ☹

Any ideas how else I can import my blogs please?

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [March 11, 2020, 8:44am UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/7 "2020-03-11T08:44:59Z")

</div>

Before importing, do the following 2 things:

1. On the server you’re importing to run `ghost log -f`
2. In the browser window you’re about to do the import with, open the network tab of dev tools

Now submit the import, you should see the request recorded in both the logs and the network tab.

Please share the **full error message including any stack trace** from the ghost logs and the **full request headers** from the network tab.

This will aid in debugging the problem.

---

<div class="post-metadata">

**Author:** ![BGD](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BGD](https://forum.ghost.org/u/BGD)\
**Post date:** [March 11, 2020, 1:58pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/8 "2020-03-11T13:58:50Z")

</div>

@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:

```auto
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)

```

Thanks kindly for your time and help

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [March 11, 2020, 2:43pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/9 "2020-03-11T14:43:01Z")

</div>

Ok so that tells us the request isn’t being fired because it’s failing some client-side pre-validation.

Best guess is it’s to do with mime-types.

Can you please confirm for me:

- Your ghost version number (run `ghost version`, I’m after the Ghost, not Ghost-CLI version)
- Your client OS
- Your browser type and version

Hopefully can figure out what to do from there!

---

<div class="post-metadata">

**Author:** ![BGD](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@BGD](https://forum.ghost.org/u/BGD)\
**Post date:** [March 11, 2020, 2:50pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/10 "2020-03-11T14:50:21Z")

</div>

thank you for the reply.

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`.

Thank you kindly for your help

---

<div class="post-metadata">

**Author:** ![Hannah](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/hannah/32/22_2.png) [@Hannah](https://forum.ghost.org/u/Hannah)\
**Post date:** [March 11, 2020, 3:01pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/11 "2020-03-11T15:01:50Z")

</div>

No problem!

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 🙂

---

<div class="post-metadata">

**Author:** ![jordankittle](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/jordankittle/32/24868_2.png) [@jordankittle](https://forum.ghost.org/u/jordankittle)\
**Post date:** [November 20, 2023, 11:30pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/12 "2023-11-20T23:30:13Z")

</div>

I just ran into this error but it is not working with Firefox either.

---

<div class="post-metadata">

**Author:** ![itstheglue](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/itstheglue/32/28619_2.png) [@itstheglue](https://forum.ghost.org/u/itstheglue)\
**Post date:** [January 28, 2024, 9:42am UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/13 "2024-01-28T09:42:46Z")

</div>

Hi there,

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.

Thanks a lot in advance for your reply!

Best, Matthias

 ![Bildschirmfoto 2024-01-28 um 09.01.19](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/0/d/0dd9758710ff69657a8f96bd4a2500abcdce3164.png)

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [January 28, 2024, 12:22pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/14 "2024-01-28T12:22:01Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![itstheglue](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/itstheglue/32/28619_2.png) [@itstheglue](https://forum.ghost.org/u/itstheglue)\
**Post date:** [January 28, 2024, 3:45pm UTC](https://forum.ghost.org/t/import-failed-ghost-blog-import-failed-request-contains-an-unknown-or-unsupported-file-type/12587/15 "2024-01-28T15:45:04Z")

</div>

Hi Cathy,

thanks for your reply!

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…

![Bildschirmfoto 2024-01-28 um 16.43.17](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/3X/e/b/eb73a70bd8a9b429e4579793883864317ef8e5d4.png)
