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:
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!
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.
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.
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
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:
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,"
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.