javascript - Changes before upload in slingshot meteor package -


i using slingshot upload images in amazon s3 , works charm. nevertheless, want use slingshot upload files (text,doc,odf etc) in amazon s3. but, want convert these files pdf first before uploading s3. familiar nodejs package "https://github.com/gfloyd/node-unoconv", converts file pdf. how able integrate slingshot.

eventually text, doc, etc files, client uploads, want them stored in s3 in pdf format. there way that.

amateur in meteor, grateful if explanation detailed.

thanks.

slingshot uploading directly s3 not sure how efficiently convert files before upload. client side, not 100% reliable , can heavy client.

for recent application used amazon lambda in order images resizing uploaded s3 bucket.

it easy use. have create package code , upload lambda , trigger lambda function when file uploaded s3.

the service cheap , tutorial easy follow. file resizing should easy modify in order pdf conversion can use npm package. there lot of steps involved: create s3 buckets, create iam roles, create lambda function, etc. configured quite reliable.

i think best tools pair s3 when uploading directly buckets.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -