# Importing image file error - help!

**URL:** <https://community.prismic.io/t/importing-image-file-error-help/5583>\
**Category:** Developing with Prismic\
**Created:** [June 3, 2021, 12:31am UTC](https://community.prismic.io/t/importing-image-file-error-help/5583 "2021-06-03T00:31:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrzej](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@andrzej](https://community.prismic.io/u/andrzej)\
**Post date:** [June 3, 2021, 12:31am UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/1 "2021-06-03T00:31:22Z")

</div>

I've searched to see if anyone else has reported this, but can't find anything. I'm so close to uploading my content but am getting stuck on this last final point. I appear to have an issue with importing a small single jpg file with each json document.

(I'm aware of the limits on 200 json docs per zip file, and the 100Mb zip file size limit - am experiencing this with just a single test document as I debug).

I have a custom content type with a few tabs, within one I have an image field with an API id of "coat\_of\_arms". I want to load "2.jpg" with a json file, so have included a section:

"coat\_of\_arms1" : {  
"origin" : {  
"url" : "2.jpg"  
}  
},

When I try and upload the json file it almost succeeds, but reports:  
Missing field '/size'  
Missing field '/height'  
Missing field '/url'  
Missing field '/kind'  
Missing field '/id'  
Missing field '/name'  
Missing field '/width'

So I now have:  
"coat\_of\_arms1": {"origin": {  
"url": "2.jpg",  
"id": "",  
"size": "",  
"height": "",  
"width": "",  
"kind": "image",  
"name": "2.jpg"  
}}

I therefore tried to add these fields into the json (I included a value of 'image' for the kind field, used the filename for the 'name' field, and I already had the url field. But I just got the same error again.

I just can't see what I'm doing wrong here. Any help most welcome!

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [June 3, 2021, 9:37am UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/3 "2021-06-03T09:37:19Z")

</div>

Hello @andrzej ,

Thank you for reaching out to us.

When you import a new image, these fields(size, height, etc.) are not required. These fields are generated once the image is processed by imgix in Prismic. You may get a warning, which you can ignore for the moment.

Thank you,  
Priyanka

---

<div class="post-metadata">

**Author:** ![andrzej](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@andrzej](https://community.prismic.io/u/andrzej)\
**Post date:** [June 3, 2021, 10:14am UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/4 "2021-06-03T10:14:21Z")

</div>

Hi thanks for this. I have tried without these fields too (that was my original approach as your documentation suggested this; but, I unfortunately still see the exact same error.

Any other ideas?

---

<div class="post-metadata">

**Author:** ![andrzej](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@andrzej](https://community.prismic.io/u/andrzej)\
**Post date:** [June 3, 2021, 10:41am UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/5 "2021-06-03T10:41:54Z")

</div>

oh and I should add, when I see the error, it's shown as 'fatal' so can't upload the document.

---

<div class="post-metadata">

**Author:** ![andrzej](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@andrzej](https://community.prismic.io/u/andrzej)\
**Post date:** [June 3, 2021, 11:40am UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/6 "2021-06-03T11:40:01Z")

</div>

@Priyanka - did you get a chance to investigate any further as I'm still stuck on this issue. Thank you!

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [June 3, 2021, 1:12pm UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/7 "2021-06-03T13:12:53Z")

</div>

Hello @andrzej

To further investigation, I need the following:

1. The URL of the repository.
2. JSON file that you want to import along with the image.

Could you please share these with me? You can send me a private message.

Thanks,

Priyanka

---

<div class="post-metadata">

**Author:** ![andrzej](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@andrzej](https://community.prismic.io/u/andrzej)\
**Post date:** [June 4, 2021, 10:57am UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/8 "2021-06-04T10:57:47Z")

</div>

Hi @Priyanka - did you get my PM yesterday. Any luck spotting the issue? Would be good to share the solution here to help others in the user community too 🙂

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [June 8, 2021, 3:36pm UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/9 "2021-06-08T15:36:24Z")

</div>

Hello Andrzej,

I have tested Import-export with your repository and the Zip file you have sent me. I found two issues in your profile Custom Type:

1. Name field is a Key Text field but configuration in the ZIP file of the Rich text field. Either change name field configuration to Rich text or change JSON in the file "`TestFam.json.`" I have changed in the JSON file like: `" name": "Addington,"`
2. To Include images in your ZIP archive, give the Image field rather than the media link field in the profile Custom Type. Change the JSON reference in `Testfam.json.` You don't need to give "type" and "kind" keys.

```auto
"coat_of_arms1": {
    "origin": { "url": "10.jpg"}
  },

```

Please follow this guide for [JSON reference](https://prismic.io/docs/core-concepts/import-json-reference).

Let me know if you have any other doubt.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [June 9, 2021, 3:36pm UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/10 "2021-06-09T15:36:41Z")

</div>

closed on June 9, 2021, 3:36pm UTC as resolved,  flag & select 'Something Else' to reopen.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 12:03pm UTC](https://community.prismic.io/t/importing-image-file-error-help/5583/11 "2021-12-09T12:03:18Z")

</div>

Opened on December 9, 2021, 12:03pm UTC


