May 12, 2011, 2:49 PM
[CLOSED] FileUploadField in a ToolBar
Hi,
I'm having a bit of trouble getting a FileUploadField to work inside an ext:ToolBar.
Which is correct? Is their something else I should do to properly have it submit?
Cheers.
I'm having a bit of trouble getting a FileUploadField to work inside an ext:ToolBar.
<ext:FileUploadField ID="statementFile" runat="server" EmptyText="Select a scanned statement file"
Width="300" CtCls="button-fix" IsFormField="true">
<Listeners>
<FileSelected Handler="var b=#{btnUploadStatement};b.enable();" />
</Listeners>
/ext:FileUploadField>
But when I post back to the controller, the Request.Files array is empty: [AcceptVerbs(HttpVerbs.Post)]
public ActionResult Upload() {
HttpPostedFileBase postedFile = Request.Files[0];
........
}
I read in the post here that you need to wrap it in a form to make it work; but in this post, here it indicates it is possible in a toolbar just as I have tried.Which is correct? Is their something else I should do to properly have it submit?
Cheers.
Last edited by Daniil; May 17, 2011 at 2:02 PM.
Reason: [CLOSED]