Skip to content

How to upload PDF file (and not only link)? #839

Answered by DmitrySharabin
GalinhaLX asked this question in Q&A
Discussion options

You must be logged in to vote

Will this help? https://codepen.io/dmitrysharabin/pen/gOrpyag

Please keep in mind a couple of things:

  • I used version 0.2.3 of Mavo (https://get.mavo.io/0.2.3/mavo.js) to avoid the bug with clickable links in edit mode. Unfortunately, we still have this bug in the stable version.
  • I used mv-uploads to illustrate that we can store data and files in separate storages. Just replace it with mv-storage to go with GitHub.
  • In read mode, you won’t see any links until you really upload a file, and the corresponding property will get its value (a URL pointing to the file). Empty properties are not shown in read mode.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LeaVerou
Comment options

Answer selected by GalinhaLX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants