Browse Source

修改图片上传,和编辑器上传图片慢的问题,

xuchunyang 8 years ago
parent
commit
bc9c6d594e

+ 1 - 1
cmp-portal/js/cmp-articalList.js

@ -366,7 +366,7 @@ $(function() {
366 366
			accept: {
367 367
				title: 'Images',
368 368
				extensions: 'gif,jpg,jpeg,bmp,png',
369
				mimeTypes: 'image/*'
369
				mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
370 370
			}
371 371

372 372
		});

+ 1 - 1
cmp-portal/js/cmp-setAuth-imgup.js

@ -6,7 +6,7 @@ function uploadFun(_this, num) {
6 6
	var postfix = /\.[^\.]+/.exec(name);      
7 7
	var filename = name.substr(0, postfix['index']);
8 8
	console.log(postfix[0]);
9
	if(postfix[0] == ".jpg" || postfix[0] == ".jpeg" || postfix[0] == ".png" || postfix[0] == ".gif" || postfix[0] == ".pdf") {
9
	if(postfix[0] == ".jpg" || postfix[0] == ".JPG" || postfix[0] == ".jpeg" || postfix[0] == ".JPEG" || postfix[0] == ".png" || postfix[0] == ".PNG" || postfix[0] == ".gif" || postfix[0] == ".GIF" || postfix[0] == ".pdf" || postfix[0] == ".PDF") {
10 10
		if(fileval != "") {
11 11
			$(_this).parents(".upFront").addClass("displayNone");
12 12
			$(_this).parents(".uploadlogo").find(".upBack").removeClass("displayNone");

+ 1 - 1
cmp-portal/js/cmp-updateinfo.js

@ -353,7 +353,7 @@ $(document).ready(function() {
353 353
		accept: {
354 354
			title: 'Images',
355 355
			extensions: 'jpg,jpeg,png',
356
			mimeTypes: 'image/*'
356
			mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
357 357
		}
358 358

359 359
	});

+ 2 - 2
js/popup.js

@ -206,7 +206,7 @@ function ResourceInfo() {
206 206
		    accept: {
207 207
		        title: 'Images',
208 208
		        extensions: 'gif,jpg,jpeg,bmp,png',
209
		        mimeTypes: 'image/*'
209
		        mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
210 210
		    }
211 211
		   
212 212
		});
@ -1030,7 +1030,7 @@ function newsBombBox() {
1030 1030
		    accept: {
1031 1031
		        title: 'Images',
1032 1032
		        extensions: 'gif,jpg,jpeg,bmp,png',
1033
		        mimeTypes: 'image/*'
1033
		        mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
1034 1034
		    }
1035 1035
		   
1036 1036
		});

+ 1 - 1
js/ueditor/dialogs/image/image.js

@ -370,7 +370,7 @@
370 370
                accept: {
371 371
                    title: 'Images',
372 372
                    extensions: acceptExtensions,
373
                    mimeTypes: 'image/*'
373
                    mimeTypes: 'image/gif,image/jpeg,image/png,image/jpg,image/bmp'
374 374
                },
375 375
                swf: '../../third-party/webuploader/Uploader.swf',
376 376
                server: actionUrl,

+ 1 - 1
js/ueditor/ueditor.all.js

@ -24483,7 +24483,7 @@ UE.plugin.register('simpleupload', function (){
24483 24483
24484 24484
            wrapper.innerHTML = '<form id="edui_form_' + timestrap + '" target="edui_iframe_' + timestrap + '" method="POST" enctype="multipart/form-data" action="' + me.getOpt('serverUrl') + '" ' +
24485 24485
            'style="' + btnStyle + '">' +
24486
            '<input id="edui_input_' + timestrap + '" type="file" accept="image/*" name="' + me.options.imageFieldName + '" ' +
24486
            '<input id="edui_input_' + timestrap + '" type="file" accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp" name="' + me.options.imageFieldName + '" ' +
24487 24487
            'style="' + btnStyle + '">' +
24488 24488
            '</form>' +
24489 24489
            '<iframe id="edui_iframe_' + timestrap + '" name="edui_iframe_' + timestrap + '" style="display:none;width:0;height:0;border:0;margin:0;padding:0;position:absolute;"></iframe>';

+ 3 - 2
js/ueditor/ueditor.config.js

@ -39,8 +39,9 @@
39 39
            'bold', 'italic', 'underline', '|',
40 40
            'insertorderedlist', 'insertunorderedlist', '|',
41 41
            'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|',
42
            'simpleupload', '|',
43
            'fontfamily', 'fontsize', 
42
            'spechars', '|',
43
           	'superscript', 'subscript','|',
44
            'simpleupload'
44 45
        ]]
45 46
        
46 47
        /*, toolbars: [[

+ 1 - 1
photo-set.html

@ -186,7 +186,7 @@ $(function (){
186 186
		    accept: {
187 187
		        title: 'Images',
188 188
		        extensions: 'gif,jpg,jpeg,bmp,png',
189
		        mimeTypes: 'image/*'
189
		       	mimeTypes: 'image/gif,image/jpg,image/jpeg,image/bmp,image/png'
190 190
		    }
191 191
		   
192 192
		});