Jan 19, 2011, 1:51 PM
[CLOSED] MVC upload file in FormPanel
Hi,
I'm trying to upload a file using the FileUploadField in a FormPanel in my MVC app - can anyone suggest how this can be done. I'm not aware of it being possible to upload a file (form with enctype of multipart/form-data) via an AJAX request... Does Ext.NET / ExtJS handle this?
My markup currently looks like this:
I'm trying to upload a file using the FileUploadField in a FormPanel in my MVC app - can anyone suggest how this can be done. I'm not aware of it being possible to upload a file (form with enctype of multipart/form-data) via an AJAX request... Does Ext.NET / ExtJS handle this?
My markup currently looks like this:
<ext:FormPanel ID="UploadForm" runat="server" Border="false" Url="/LocationData/UploadMap/">
<Items>
<ext:FileUploadField ID="MapUpload" runat="server" Width="300" Icon="Attach" FieldLabel="File"/>
<ext:Button ID="Button3" runat="server" Text="Upload map">
<Listeners>
<Click Handler="#{UploadForm}.form.submit({ waitMsg : 'Uploading...', params : { id : getRecordId() }, success : uploadMapCompleted, failure : uploadFailureHandler});" />
</Listeners>
</ext:Button>
</Items>
</ext:FormPanel>
Last edited by Daniil; Jan 20, 2011 at 1:13 PM.
Reason: [CLOSED]