Sunday 15 March 2015

RAILS - paperclip don't work with Ajax -


I have an application which is working fine with form_ to upload an image using the paperclip.

The problem is, because of the Javascript security model, this picture can not be uploaded through AJX.

I should know: What is the best way, which actually works with Rail 2.3.x, to send a file via AXA via Rail? IFRAME technology? SWFUpload? Any other ideas?

VP

The way to go for iframe technology is to upload the AJAX file There is currently anything implemented in this way and I have followed the tutorial from this page:

In the tutorial, he uses attachment_fu but this code works well with paperclip.

Hope it helps,

Caleb


No comments:

Post a Comment