Results 1 to 2 of 2

Thread: File Upload in Sencha 2.1.1

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    111
    Answers
    5

    Default File Upload in Sencha 2.1.1

    I need to use an input of type file in my project. I see there is a private Ext.field.File. I tried using this, but there aren't any useful events attached to it. Is there a xtype for file upload that has the change event added?

    Thanks

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,451
    Answers
    3997

    Default

    Are you specifying it in the component config?

    Code:
    Ext.Viewport.add({
        xtype : 'formpanel',
        items : [
            {
                xtype     : 'textfield',
                label     : 'File',
                component : {
                    xtype : 'file'
                }
            }
        ]
    });
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •