mercredi 21 novembre 2018

Upload pdf to amazon in Rails

I have rails app which works with pdf files using PDFKit. I have no problems with

kit = PDFKit.new(data)

kit.to_file("some.pdf")

What I need as result - save my pdf to Amazon S3. How is it possible to save it directly to the S3 or upload it from tmp/ folder (as I'm going to deploy it on Heroku)

Aucun commentaire:

Enregistrer un commentaire