Commits

Anonymous committed a84fbbd

添加BMP文件支持

Comments (0)

Files changed (2)

themes/admin/upload-html5.html

         </table>
     </div>
 </div>
-<p class="info">你可以上传JPG,GIF,PNG或BMP文件,单个文件不超过1M</p>
+<p class="info">你可以上传JPG,GIF,PNG或BMP文件,单个文件不超过10M</p>
 <p>
     <input type="button" id="img-upload-btn" value="开始上传" /> 
     <a href="#" id="img-upload-ac" style="display:none; font-size:16px;" ></a>
         var uploader = new qq.FileUploader({
             element: $("#file-uploader")[0],
             action: '/a/upload5/',
-            allowedExtensions: ['jpg','jpeg','png','gif'],
+            allowedExtensions: ['jpg','jpeg','png','gif','bmp'],
             sizeLimit:10000000,
             minSizeLimit:1,
 			maxConnections:1,

themes/admin/upload.html

         </table>
     </div>
 </div>
-<p class="info">你可以上传JPG,GIF,PNG或BMP文件,单个文件不超过1M</p>
+<p class="info">你可以上传JPG,GIF,PNG或BMP文件,单个文件不超过10M</p>
 <textarea id="copy_txt" style="display:none;" >{%if settings.copy_txt %}{{settings.copy_txt}}{% else %}{0}{% endif %}</textarea>
 <p>
 	<input type="button" id="img-upload-btn" value="开始上传" /> 
 			'multi' : true,
 			'queueID': 'img-upload-list',
 			'sizeLimit':10000000,  //10M
-			'fileDesc':'请选择图片*.jpg;*.gif;*.png;*.jpeg',
-			'fileExt':'*.jpg;*.gif;*.png;*.jpge;',
+			'fileDesc':'请选择图片*.jpg;*.gif;*.png;*.jpeg;*.bmp',
+			'fileExt':'*.jpg;*.gif;*.png;*.jpge;*.bmp;',
 		});
 	   $("#img-upload-btn").click(function(){
 	   	   var album = $('#album-select option:selected').val();