Kontrolle Bildbreite und-Höhe, wenn upload image

Direkt zum Punkt. Ich will den Grenzwert für die Breite und Höhe des Bildes, wenn der Benutzer ein Bild hochladen mit plupload.

Letsay:
wenn
width: 1000px
Höhe: 1000px
sonst
Sie müssen Bild hochladen mit mindestens width:1000px und Höhe:1000px

//$(".form").validator();
$(function() {
    if($("#uploader").length > 0) {
        var uploader = new plupload.Uploader({
            runtimes : 'html5,flash,silverlight',
            browse_button : 'pickfile',
            container : 'uploader',
            max_file_size : '10mb',
            url : 'design.php?do=upload&ajax=1',
            multiple_queues: false,
            file_data_name: 'design',
            flash_swf_url : www + '/js/plupload.flash.swf',
            silverlight_xap_url : www + '/js/plupload.silverlight.xap',
            filters : [
                {title : "Image files", extensions : "jpg,gif,png,jpeg,bmp"}
            ]

        });

        $('#uploadfiles').click(function(e) {
            if($("#uploader select[name=category]").val() == "") {
                $("#uploader select[name=category]").next('.error-required').show();
                return false;
            }

            uploader.start();
            e.preventDefault();
        });

        uploader.init();

So, ist das möglich?

InformationsquelleAutor faidzal | 2012-12-30
Schreibe einen Kommentar