Displaying 1 result from an estimated 1 matches for "to_jq_upload".
2013 Mar 28
1
Error Empty file upload result - problem with jQuery bulk file upload
...ink of and in the end I have modified the
model following this advice:
https://github.com/blueimp/jQuery-File-Upload/issues/365#issuecomment-13859210
My code can be found at:
https://github.com/bigos/chrisb-images/blob/master/app/models/upload.rb
relevant bit in my model looks like this:
def to_jq_upload
{
:files => [
{
:name => upload_file_name,
:type => upload_content_type,
:size => upload_file_size,
:url => upload.url,
:delete_url => upload_path(self),...