• Anna
    May 12, 2015 at 8:12 am #108366

    Actually i need to add min size and resolution size, but i can’t find a file in which they put the code for addFileFilter function, so kindly can you point me out to the file?

    Go into css_js_include.php at line 490 and you will see the parameters that are sent to plpupload

    wp_localize_script(‘ajax-upload’, ‘ajax_vars’,

    array( ‘ajaxurl’ => admin_url(‘admin-ajax.php’),

    ‘nonce’ => wp_create_nonce(‘aaiu_upload’),

    ‘remove’ => wp_create_nonce(‘aaiu_remove’),

    ‘number’ => 1,

    ‘upload_enabled’ => true,

    ‘path’ => get_template_directory_uri(),

    ‘confirmMsg’ => __(‘Are you sure you want to delete this?’,’wpestate’),

    ‘plupload’ => array(

    ‘runtimes’ => ‘html5,flash,html4’,

    ‘browse_button’ => ‘aaiu-uploader’,

    ‘container’ => ‘aaiu-upload-container’,

    ‘file_data_name’ => ‘aaiu_upload_file’,

    ‘max_file_size’ => $max_file_size . ‘b’,

    ‘url’ => admin_url(‘admin-ajax.php’) . ‘?action=me_upload&nonce=’ . wp_create_nonce(‘aaiu_allow’),

    ‘flash_swf_url’ => includes_url(‘js/plupload/plupload.flash.swf’),

    ‘filters’ => array(array(‘title’ => __(‘Allowed Files’,’wpestate’), ‘extensions’ => “jpeg,jpg,gif,png,pdf”)),

    ‘multipart’ => true,

    ‘urlstream_upload’ => true,

    // ‘max_file_count’ =>2

    // ‘multi_selection’ => false

    )

    Thanks

You must be logged in to reply to this topic.

'
Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.