Make WordPress Core


Ignore:
Timestamp:
11/13/2011 02:01:13 AM (15 years ago)
Author:
azaozz
Message:

Add error message when a big file fails to upload, expose the XHR request in plipload and abort() it, see #19228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r19262 r19266  
    13411341var resize_height = <?php echo get_option('large_size_h', 1024); ?>, resize_width = <?php echo get_option('large_size_w', 1024); ?>,
    13421342wpUploaderInit = <?php echo json_encode($plupload_init); ?>;
    1343 
    1344 jQuery(document).ready(function($){
    1345         function _switch(m) {
    1346                 if ( m ) {
    1347                         deleteUserSetting('uploader');
    1348                         $('.media-upload-form').removeClass('html-uploader');
    1349 
    1350                         if ( typeof(uploader) == 'object' )
    1351                                 uploader.refresh();
    1352                 } else {
    1353                         setUserSetting('uploader', '1'); // 1 == html uploader
    1354                         $('.media-upload-form').addClass('html-uploader');
    1355                 }
    1356         }
    1357         $('.upload-flash-bypass a').click(function(){_switch(0);return false;});
    1358         $('.upload-html-bypass a').click(function(){_switch(1);return false;});
    1359 });
    13601343</script>
    13611344
Note: See TracChangeset for help on using the changeset viewer.