0

I'm using filepicker.io to upload files to s3. As well as storing the original image I'd like to store thumbnails.

The conversion urls are pretty handy. I know these are cached but I think long term I should just be storing the thumbnails.

I tried converting and store in the filepicker.pickMultiple success callback but things got a bit messy.

Can I setup the filepicker to do this on upload?

EDIT: this looks like a good solution... still wondering if there are alternatives though.

Community
  • 1
  • 1
digitalWestie
  • 2,647
  • 6
  • 28
  • 45

1 Answers1

0

You should use the .convert() call on each of the FPFiles that are returned in the pick() or pickMultiple() call. To help keep the callbacks, etc. manageable, take a look at https://github.com/caolan/async

brettcvz
  • 2,371
  • 1
  • 13
  • 14