acalejos / phoenix-upload-pdf-preview

Toy project demonstrating how to add a PDF preview to Phoenix Live View live uploads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UploadPdfPreview

A simple example showing how to generate live previews of different file types using Phoenix LiveView's uploads feature.

In this example I use PDF and PDF.js to generate a preview of the uploaded PDF file.

Link to the writeup here

Demo

Demo

How to use

  • Clone the repo
  • Run mix setup to install dependencies
  • Start your Postgres database
  • Run mix phx.server to start the server
  • Visit http://localhost:4000 and upload a PDF file

Learn more

About

Toy project demonstrating how to add a PDF preview to Phoenix Live View live uploads


Languages

Language:Elixir 74.5%Language:HTML 16.7%Language:JavaScript 8.6%Language:CSS 0.1%