The code explains how to use paperclip with jQuery and fileupload with Rails