Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/MediaUploader/resources/mw.fileApi.js
Ðазад
/* miscellaneous fileApi routines -- partially copied from mediawiki.special.upload.js, must refactor... */ ( function () { mw.fileApi = { /** * Check if this is a recognizable image type... * Also excludes files over 10M to avoid going insane on memory usage. * * TODO is there a way we can ask the browser what's supported in <img>s? * TODO put SVG back after working around Firefox 7 bug <https://bugzilla.wikimedia.org/show_bug.cgi?id=31643> * * @param {File} file * @return {boolean} */ isPreviewableFile: function ( file ) { var known = [ 'image/png', 'image/gif', 'image/jpeg' ], tooHuge = 10 * 1024 * 1024; return this.isPreviewableVideo( file ) || ( known.indexOf( file.type ) !== -1 ) && file.size > 0 && file.size < tooHuge; }, /** * Check if this is a recognizable video type... * * @param {File} file * @return {boolean} */ isPreviewableVideo: function ( file ) { var video = document.createElement( 'video' ); return video.canPlayType && video.canPlayType( file.type ).replace( 'no', '' ) !== ''; } }; }() );
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка