How to import files

Hi. I would like to know how to import a file like a .pdf or .mp3 do Prismic in the "imports/exports" section ? I tried putting a link in the document, in this format:

...
"pdf_file": {
    "id": "",
    "url": "https://s3.amazonaws.com/voicebucketvoitto/pdf/ingles/[ENG] ProActive Sales Management.pdf",
    "name": "[ENG] ProActive Sales Management.pdf",
    "kind": "document",
    "date": null,
    "size": "",
    "width": "",
    "height": "",
    "wioUrl": "wio://medias/"
  },
...

But, instead of importing the media, it just created a link to it.

Hi Mateus,

Thanks for reaching out.

I've done some tests to import pdf files, which works for me, and importing media files depends on where you are uploading the files from.

So if the media file (for me, a pdf file) is local, then you can put this file at the same level as the other JSON files you want to import and then refer this file from the JSON file that corresponds the to document that you want to add the file to.

Here is my test import:

For more info about importing media files from web URLs, please check this article.

Please let me know if you need any extra help,
Fares

This thread has been closed due to inactivity. Flag to reopen.