PDA

View Full Version : Problem with my uploader, I can't upload files like 10+Mb



Elfayer
18 Oct 2012, 4:48 AM
Hi,
I have an uploader that upload files like -1Mb fine, but if I try a 18Mb or 69Mb, it doesn't work. I don't understand why my C# upload method is not even called...

Here is the Js code :

'#submitUploadIE': {
click: function () {
var me = this;
var form = (Ext.ComponentQuery.query('#uploadFormIE')[0]).getForm();

if (form.isValid()) {
form.submit({
success: function (form, o) {
Ext.Msg.show({
title: 'Result',
msg: o.result.result,
buttons: Ext.Msg.OK,
icon: Ext.Msg.INFO
});
},
failure: function (form, o) {
Ext.Msg.show({
title: 'Result',
msg: o.result.error,
buttons: Ext.Msg.OK,
icon: Ext.Msg.ERROR
});
}
});
}
}
}
And the upload window:

Ext.define('EXC.view.uploadWindowIE', {
extend: 'Ext.window.Window',
alias: 'widget.uploadWindowIE',

title: 'Upload',
width: 400,
draggable: false,
resizable: false,
items: [{
xtype: 'form',
itemId: 'uploadFormIE',
bodyPadding: 10,
frame: true,
url: '/File/UploadIE/',
items: [{
xtype: 'filefield',
name: 'file',
fieldLabel: 'File',
labelWidth: 25,
allowBlank: false,
anchor: '100%'
}],
buttons: [{
text: 'Upload',
itemId: 'submitUploadIE'
}]
}]
});

Thanks in advance for help !

mitchellsimoens
23 Oct 2012, 6:22 AM
Have you checked the dev tools to see if the request is made?

James Goddard
23 Oct 2012, 8:20 AM
Mostly likely this is an upload size limit configuration on your IIS implementation.

Elfayer
23 Oct 2012, 11:16 PM
Yes, I've fixed the problem with :

<system.web>
<httpRuntime executionTimeout ="3600" maxRequestLength="1073741824" />
</system.web>

Timout of 1 hour and lenght to 1Gb.