一些文件上傳等鴕鳥政策 我認爲這是一個上傳大小限制,所以我加入到我的web.configuploadify在ASP淨MVC和IIS 7.5的失敗,一些文件
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000" maxUrl="32768" maxQueryString="32768" />
</requestFiltering>
</security>
和你可以看到下面的uploadfy:
'fileSizeLimit' : 500000
這就是我需要接受文件< = 500MB 我怎樣才能找到這個失敗的原因?
錯誤:
errorCode: 200
errorMsg: 413
errorString: HTTP 413 Error
UPLOADFY:
$('#file_upload').uploadify({
'debug': true,
'swf': '../../Components/uploadify/uploadify.swf',
'uploader': '/Operacao/Upload',
'auto': false,
'buttonImage': '../../Images/uploadify/importar.jpg',
'buttonClass': 'uploadifyBtn',
'width': '210',
'height': '21',
'fileSizeLimit' : 500000,
'onUploadStart' : function(file) {
//return alert('Starting to upload ' + file.name);
},
'onFallback': function() {
alert('Versão do flash não compativel com o sistema de upload. Favor contactar o administrador do sistema!');
},
'onUploadError' : function(file, errorCode, errorMsg, errorString) {
alert('O arquivo ' + file.name + ' não pode ser importado: ' + errorCode + ' - ' + errorMsg + ' - ' + errorString);
},
'onSelectError': function() {
alert('Você não tem permissão para acessar o arquivo: "' + file.name + '" ou o arquivo está corrompido. Favor contactar o administrador do sistema.');
},
'onUploadSuccess': function (file, data, response) {
//alert(data);
if (data == 'true') {
isOk = true;
success('true');
} else {
success('false');
isOk = true;
}
}
});
我需要在web.config xml文件中配置。我已經加入<位置路徑= 「gedaiapp」> 到我的XML,但這樣做,我的js文件未正確安裝...鴕鳥政策知道爲什麼。我得到內部服務器錯誤 –
2013-02-20 18:49:39