Results 1 to 2 of 2

Thread: help with explanation of code in blueimp jquery main.js

  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default help with explanation of code in blueimp jquery main.js

    Hi everyone,

    I am trying to use the blueimp jquery upload widget. I have modified it so that authenticated users each have a folder which contain their own uploaded images. This is working fine on the server side but the images are not being displayed to the authenticated users.

    I found an issue which appears to be the same as mine at https://github.com/blueimp/jQuery-Fi...oad/issues/241.

    In this the plugin author says:

    Have a look at example/application.js, the second section is commented with
    // Load existing files:
    There, add
    + '?ext=VAR1&nota=VAR2'
    behind
    $('#file_upload').fileUploadUIX('option', 'url')
    and adjust VAR1 and VAR2 to your desired path variables.
    here is the code from the main.js file:

    Code:
    $('#fileupload').each(function () {
                var that = this;
                $.getJSON(this.action, function (result) {
                    if (result && result.length) {
                        $(that).fileupload('option', 'done')
                            .call(that, null, {result: result});
                    }
                });
            });
    Can someone explain what I need to do here?

    Thanks,

    Bill

  2. #2
    Join Date
    Aug 2009
    Location
    utf-8
    Posts
    205
    Thanks
    4
    Thanked 7 Times in 7 Posts

    Default

    Something like this perhaps?

    Code:
    $('#file_upload').fileUploadUIX('option', 'url') {
    + '?ext=VAR1&nota=VAR2'
    
    //rest of code
    
    }

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •