AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coopiak/amisdesseniors-fr/nice2/media/lib_compojoom/js/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/coopiak/amisdesseniors-fr/nice2/media/lib_compojoom/js/fields/fileupload.js
function initFileUpload(options) {


    jQuery(document).ready(function () {
        var $ = jQuery;

        document.getElementById("file-upload-fake").addEventListener("click", function () {
            document.getElementById("file-upload-real").click();  // trigger the click of actual file upload button
        });
        // Initialize the jQuery File Upload widget:
        $('#fileupload').fileupload({
            // Uncomment the following to send cross-domain cookies:
            //xhrFields: {withCredentials: true},
            formData: {},
            autoUpload: true,
            maxFileSize: options.maxFileSize,
            maxNumberOfFiles: options.maxNumberOfFiles,
            url: options.url,
            disableImageResize: false,
            imageMaxWidth: options.imageMaxWidth,
            imageMaxHeight: options.imageMaxHeight,
            finished: function (e, data) {
                if ($(this).fileupload('option').getNumberOfFiles() >= options.maxNumberOfFiles) {
                    $('.compojoom-max-number-files').removeClass('hide d-none');
                } else {
                    $('.compojoom-max-number-files').addClass('hide d-none');
                }
            },
            destroyed: function (e, data) {
                if ($(this).fileupload('option').getNumberOfFiles() >= options.maxNumberOfFiles) {
                    $('.compojoom-max-number-files').removeClass('hide d-none');
                } else {
                    $('.compojoom-max-number-files').addClass('hide d-none');
                }
            }
        }).on('destroyed', function (e, data) {
            if ($(this).fileupload('option').getNumberOfFiles() >= options.maxNumberOfFiles) {
                $('.compojoom-max-number-files').removeClass('hide d-none');
            } else {
                $('.compojoom-max-number-files').addClass('hide d-none');
            }
        }).on('fileuploadadd', function (e, data) {
            $('.fileupload-progress.hide').removeClass('hide d-none');
        });

        // Enable iframe cross-domain access via redirect option:
        $('#fileupload').fileupload(
            'option',
            'redirect',
            window.location.href.replace(
                /\/[^\/]*$/,
                '/cors/result.html?%s'
            )
        );

        // Load existing files:
        $('#fileupload').addClass('fileupload-processing');
        $.ajax({
            // Uncomment the following to send cross-domain cookies:
            //xhrFields: {withCredentials: true},
            url: options.urlWithExistingFiles,
            dataType: 'json',
            context: $('#fileupload')[0]
        }).always(function () {
            $(this).removeClass('fileupload-processing');
        }).done(function (result) {
            $(this).fileupload('option', 'done')
                .call(this, $.Event('done'), {result: result});
        });

    });
}

Anon7 - 2022
AnonSec Team