Integraring to a posh jQuey uploader

Started by adam14 replies10 views
adam1Original post
#1

Archived from the Transloadit support forum. Originally posted on August 12, 2011; details may be outdated, see our docs for current behavior. Original thread

Thanks for your help so far.

I’ve looked at the customisation options for your jQuery uploader. The main thing I want is for the file upload to stay on the same page i.e. don’t use redirect_URL. I need the submit and results to all happen in-page because my site is essentially a single-page webapp.

I tried to do that but think it means forking jquery.transloadit2.js itself: you attach to the the form’s .submit then unattach and fire the real one. I want to unattach and fire my ‘and_then_something_else()’ instead 🙂

But there are a few things other uploaders offer that aren’t here:

  • Drag/drop
  • Nice progress bars e.g. animated/glassy
  • Show image thumbnail before the upload is complete (presumably the thumbnail typically stored in the Exif)

I wonder if you might advise how complex it would be, conceptually, to integrate Transloadit into one of the other jQuery file uploaders? The one I have in mind is http://aquantum-demo.appspot.com/file-upload.

I guess I have two options: fork your jQuery uploader and add the features I want, or fork Aquantum’s and tie it in to Transloadit.

Either way I’ll try to offer my work back for others to use. I’m going to give the latter a try first.

Any pointers/tips/advice??

With thanks,

Adam

Felix_Geisendorfer
#2

I tried to do that but think it means forking jquery.transloadit2.js itself

The plugin can be used on a single page app without modifications. Simply set the autoSubmit option to false.

I wonder if you might advise how complex it would be, conceptually, to integrate Transloadit into one of the other jQuery file uploaders?

It’s not trivial, but it can certainly be done. Our jQuery uploader is open source, and if you generally follow what it does, you should be able to integrate with any uploader out there.

HTH, Felix

tim-kos
#3

Closing this for now.

tim-kos
#5

Closing this for now.