Issue in qqfileuploader

20 views
Skip to first unread message

harshad

unread,
Aug 16, 2012, 9:39:08 AM8/16/12
to rubyonra...@googlegroups.com
Hi,

I have a issue in qqfileuploader. When i am trying to upload image then get error:
NetworkError: 500 Internal Server Error

I am using below code...I already set csrf token in request but still get error....

function createUploader(){           
        var uploader = new qq.FileUploader({
            element: document.getElementById('file-uploader'),
            action: 'uploadimage',
            params: {
              authenticity_token: $('meta[name=csrf-token]').attr('content')
            },           
            allowedExtensions: ['png', 'gif', 'jpg', 'jpeg'],
            multiple: false
        });          
    }
       
    // in your app create uploader as soon as the DOM is ready
    // don't wait for the window to load 
    window.onload = createUploader;


If any have a solutions then please send me asap.
Thanks.
Reply all
Reply to author
Forward
0 new messages