View Full Version : File Upload Problem

20 May 2009, 2:59 AM
I have a form wherein I need to get a fileupload "button"... not the traditional textbox and button but a single button which is going to popup the window allowing the user to select a file as found here: http://extjs.com/deploy/dev/examples/form/file-upload.html Its the second one from the top that I wanna do.

> I use ASP.net... I didnt find any help online even after going through heaps of material on how to do the above or do anything even remotely like it.

>on using Ext.form.FileUploadField({....}); I get an error in JS saying "object expected"... -Got this solved... But isnt there some sort of implementation built into extjs for fileuploads ??

> I am totally lost on how to create a single button file upload control WITHOUT adding any third party files to the project(I am not supposed to add them anyway)

Please help...

21 May 2009, 3:47 AM
new Ext.Window({
height : 200,
width : 500,
layout : 'fit',
items : {
xtype : 'form',

items : [
xtype : 'field',
fieldLabel : 'Select one',
inputType : 'file'