Uploadify + Paperclip + Rails nested association before_save -


i need create model application form models can fill , add pictures it.

i'm following example uploadify, paperclip , rails 3 approach. https://github.com/websymphony/rails3-paperclip-uploadify

to pictures, have polymorphic attachment model , attach ajax uploaded attachments yet unsaved model form , there's tricky part cames.

users not logged, there's no "model_id" until saved.

since i'm showing user small preview of images uploaded in form ajax after each upload need way correlate them.

i thinking middle token until model saved i'm not sure whats best approach accomplish this.

thank you!

we dumped uploadify when moving rails 3 , using jquery-file-upload.

https://github.com/blueimp/jquery-file-upload

setting bunch of middleware nothing more upload files seems major hassle.

only problem jquery solution multiple uploads aren't supported in ie.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -