Uploadify Rails 3.0 - Nothing happens after file is chosen -
I am trying to get uploadify to work with railways 3 but with very little success, Everything has read a lot to read, and tried a lot, but nothing seems to work
here with my javascript / jquery ..... form field .
& lt; Script type = "text / javascript" & gt; $ (Document) .ready (function () click on {$ ('# video_upload') (function (event) {event.preventDefault ();}); $ ('# video_upload') uploadify ({'Uploaders ':: / Javascripts/uploadify/uploadify.swf', 'script': '/ video / create', 'sizeLimit': '2000.bytes',' cancelImg ':' /images/cancel.png ',' Multi ': false' scriptData ': {' Format ':' json ',' authenticity_token ': encodeurIComponent (' <% = form_authenticity_token if protect_against_forgery%> & gt;; '}}}); $ (' # video_submit ') Click (function (event) {event.preventDefault (); $ ('# video_upload') Upload Upload ();});}); & Lt; / Script & gt; & Lt; Input id = "video_upload" width = "120" type = "file" height = "30" name = "video [upload]" & gt; And I have a simple video_controller, which uses paperclip to handle file data (it works fine with normal HTML uploads). When I select a file, everything works - progress times, etc. - but nothing happens. There is nothing printed in the console or log I thought it was an authentic matter, but that front Tried to do everything but still no luck ... very disappointing.
Any help really will be great.
Edit ========
There is an upload, which I thought was the original case to avoid a button to get started, use of automatic Do: Right in your uploadify configuration while an inspection on my side it broke my brain almost
after "text" item = "text"> itemprop = "text"> That is mentioned in the comment above, it seems that he just missed something from his sample
Now its will be recorded in a click event for jQuery Video_Submit button and upload the file once click
Comments
Post a Comment