</pre><pre name="code" class="plain">Stacktrace:] with root cause
java.lang.SecurityException: The extension of the file is not allowed to be uploaded (1010).
當遇到這個問題時,
1、檢查jspsmartupload包是否加入了lib
2、檢查上傳文件是否格式錯誤
sm_std.setAllowedFilesList("jpg,png");
特別注意:這裏大小寫有效,所以最好是PNG,png,JPG,jpg大小寫都寫上!
3、檢查自己上傳的文件名中是否包含中文,把上傳的文件名改成英文即可