# Can't import from zip

**URL:** <https://forum.ghost.org/t/cant-import-from-zip/26960>\
**Category:** Developer help\
**Created:** [November 24, 2021, 12:24pm UTC](https://forum.ghost.org/t/cant-import-from-zip/26960 "2021-11-24T12:24:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![chimit](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@chimit](https://forum.ghost.org/u/chimit)\
**Post date:** [November 24, 2021, 12:24pm UTC](https://forum.ghost.org/t/cant-import-from-zip/26960/1 "2021-11-24T12:24:14Z")

</div>

Hi!

I’m trying to migrate a blog from Medium to self-hosted Ghost. I successfully created a zip backup of Medium which is more than 100Mb.

I can’t upload this file via the Ghost dashboard due to an error:

> Import failed  
> Request is larger than the maximum file size the server allows

Even though I did this: [How to resolve image upload issues in Ghost](https://ghost.org/docs/faq/image-upload-issues/). Apparently, these instructions are irrelevant to the importing tool.

Then I tried another way - import through the Ghost CLI. I uploaded my zip backup and ran:

```auto
$ ghost-mgr@ghost-ubuntu-s-1vcpu-1gb-amd-sgp1-01:/var/www/ghost$ ghost import gh-medium-export-livi-1637746050927.zip 
Killed

```

But as you see get a “Killed” response without any details. Even with the `--verbose` flag.

Any suggestions would be appreciated!

P.S. Ghost was installed from the DigitalOcean Marketplace.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [November 24, 2021, 12:32pm UTC](https://forum.ghost.org/t/cant-import-from-zip/26960/2 "2021-11-24T12:32:44Z")

</div>

A Medium export zip is not the same as a Ghost export zip so you can’t import one directly into the other.

There are some docs for migrating from Medium here:

> **[Official guide: How to migrate from Medium to Ghost](https://ghost.org/docs/migration/medium/)**
>
> Everything you need to know about working with the Ghost professional publishing platform.

---

<div class="post-metadata">

**Author:** ![chimit](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@chimit](https://forum.ghost.org/u/chimit)\
**Post date:** [November 25, 2021, 1:37am UTC](https://forum.ghost.org/t/cant-import-from-zip/26960/3 "2021-11-25T01:37:58Z")

</div>

Yes, my Medium backup was created using @tryghost/migrate

And it was created successfully:

```auto
migrate medium medium-export-livi.zip
info Skipped files: 18
✔ Initializing Workspace
   → Workspace initialized at /var/folders/h9/4hf04ywn79ngy8gvvck5cp880000gn/T/mg/002547a4ea3c297a500667b2bd1d582e-medium-e…
✔ Read Medium export zip
✔ Fetch missing data via WebScraper
 Total: 114. Complete: 114, Failed: 0, Skipped: 0, Disabled: 0
✔ Build Link Map
✔ Format data as Ghost JSON
✔ Fetch images via ImageSraper
 Total: 4119. Complete: 4119, Failed: 0, Skipped: 0, Disabled: 0
✔ Update links in content via LinkFixer
 Total: 114. Complete: 114, Failed: 0, Skipped: 0, Disabled: 0
✔ Convert HTML -> MobileDoc
 Total: 114. Complete: 114, Failed: 0, Skipped: 0, Disabled: 0
✔ Write Ghost import JSON File
✔ Write Ghost import zip
ok Successfully written output to /Users/user/medium_import/gh-medium-export-livi-1637746050927.zip in 175083ms.

```

---

<div class="post-metadata">

**Author:** ![DonaldH](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/donaldh/32/13880_2.png) [@DonaldH](https://forum.ghost.org/u/DonaldH)\
**Post date:** [November 25, 2021, 2:09am UTC](https://forum.ghost.org/t/cant-import-from-zip/26960/4 "2021-11-25T02:09:27Z")

</div>

Hello @chimit and welcome to the Ghost community!

This might help you:

> [@Ghost Import fail: Import failed Request is larger than the maximum file size the server allows](https://forum.ghost.org/t/ghost-import-fail-import-failed-request-is-larger-than-the-maximum-file-size-the-server-allows/11839/5):
>
> I seem to be facing something similar. I’ve updated client\_max to 5G and it still won’t start the import process. Any ideas on what else could be throwing it off?

The first thing to note is the part about NGINX config and also, if you are using Cloudflare, apparently their free CDN has a limit of 100MB upload.

---

<div class="post-metadata">

**Author:** ![chimit](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@chimit](https://forum.ghost.org/u/chimit)\
**Post date:** [November 25, 2021, 2:21am UTC](https://forum.ghost.org/t/cant-import-from-zip/26960/5 "2021-11-25T02:21:44Z")

</div>

Thanks for the answer! I’ve read that topic but I think it’s not my case. I’m using Cloudflare but proxy function is disabled for Ghost domain. So Cloudflare is only a DNS.

---

<div class="post-metadata">

**Author:** ![chimit](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@chimit](https://forum.ghost.org/u/chimit)\
**Post date:** [November 26, 2021, 1:22am UTC](https://forum.ghost.org/t/cant-import-from-zip/26960/6 "2021-11-26T01:22:22Z")

</div>

As I see in the zip backup there is a JSON file and a “content” folder which looks very similar with the standard “content” folder in a Ghost installation. I guess I can just copy this folder and import only the JSON file.

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/f/f4b090e6ef19d5227902a3082a482ceb3010a5c5.png)

But there are 2 problems that stop me from it:

1. I’m not sure it’s the right way. It’s not documented anywhere.
2. There is a mess with files/folders owners in the DO droplet: some folders belong to `root`, some to `ghost`, others to `ghost-mgr`. Again, it’s not documented.

---

<div class="post-metadata">

**Author:** ![chimit](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@chimit](https://forum.ghost.org/u/chimit)\
**Post date:** [November 26, 2021, 1:22am UTC](https://forum.ghost.org/t/cant-import-from-zip/26960/7 "2021-11-26T01:22:54Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/0/0fe159c2cb649e1e1bbd8f4d3426eb540ed7897c.jpeg)

P.S. Please, remove this ridiculous limitation: “Sorry, new users can only put one embedded media item in a post.”

---

<div class="post-metadata">

**Author:** ![chimit](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@chimit](https://forum.ghost.org/u/chimit)\
**Post date:** [November 26, 2021, 3:45am UTC](https://forum.ghost.org/t/cant-import-from-zip/26960/8 "2021-11-26T03:45:01Z")

</div>

OK, I did it and seems the plan above works.

Just need to change folders permissions after uploading them via SFTP:

```auto
$ chown ghost:ghost /var/www/ghost/content/images -R

```
