waynehoover / s3_direct_upload

Direct Upload to Amazon S3 With CORS
MIT License
652 stars 333 forks source link

Any way to get the template context in ajax:complete ? #130

Closed arkan closed 11 years ago

arkan commented 11 years ago

Hi,

I'm doing the following. For each upload to S3, I have a template #template-upload which is added to a ul. At the end of the upload, I want:

Regarding the progress bar I can easily patch the javascript, but for the second I've no idea how to achieve this.

I would like to get the context of the concerned template in ajax:success, to update some stuffs with the json got from my server.

However at this place, the context is lost. data.context is undefined.

Any idea ?

Thanks for any input :-)

arkan commented 11 years ago

Nevermind, I changed my way to do. Thanks for the good work on this gem :-)

ttseng commented 10 years ago

Can you share how you resolved this problem?