ACC SHELL

Path : /srv/www/vhosts/centrumlb/administrace/include/
File Upload :
Current File : //srv/www/vhosts/centrumlb/administrace/include/plupload_fotogalerie.inc

<script type="text/javascript">
    // Convert divs to queue widgets when the DOM is ready
    $(function() {
        $("#uploader").pluploadQueue({

            // General settings
            runtimes : 'gears,silverlight,browserplus,flash,html5',
            url : 'plupload/examples/upload.php',
            max_file_size : '10mb',
            chunk_size : '1mb',
            unique_names : true,

            // Resize images on clientside if we can
            //resize : {width : 600, height : 800, quality : 100},

            // Specify what files to browse for
            filters : [
                {title : "Soubory obrázků", extensions : "jpg,gif,png,flv,swf"}
            ],

            // Flash settings
            flash_swf_url : 'plupload/js/plupload.flash.swf',

            // Silverlight settings
            silverlight_xap_url : 'plupload/js/plupload.silverlight.xap'
        });

        // Client side form validation
        $('#upload').submit(function(e) {
            var uploader = $('#uploader').pluploadQueue();

            // Validate number of uploaded files
            if (uploader.total.uploaded === 0) {
                // Files in queue upload them first
                if (uploader.files.length > 0) {
                    // When all files are uploaded submit form
                    uploader.bind('UploadProgress', function() {
                        if (uploader.total.uploaded === uploader.files.length)
                            $('#upload').submit();
                    });

                    uploader.start();
                } else
                    //alert('Před odesláním vyberte soubor.');

                e.preventDefault();
            }
        });
    });
</script>


ACC SHELL 2018