Skip to content

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

Notifications You must be signed in to change notification settings

acalejos/phoenix-upload-pdf-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published