Results 1 to 3 of 3

Thread: 2 question about Ext.ux.UploadForm

  1. #1

    Default 2 question about Ext.ux.UploadForm

    We are trying to use Ext.ux.UploadForm in our Web App to upload images.
    Now we got 2 thing to do:
    1. limit the file types to some image like "image/jpeg".
    2. need an callback when upload success.
    btw, we use java common-fileupload as the server side handler.
    Any advise will be appreciated.

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,664

    Default

    Quote Originally Posted by craneleeon View Post
    We are trying to use Ext.ux.UploadForm in our Web App to upload images.
    Now we got 2 thing to do:
    1. limit the file types to some image like "image/jpeg".
    It's not possible to limit file types with standard <input type="file"> in dialog, however, you can delete them in javascript code. Here I could add (before)fileadded events. Would it help?
    2. need an callback when upload success.
    btw, we use java common-fileupload as the server side handler.
    Any advise will be appreciated.
    Yeah, looking in code, I can add some events. Do you need pairs beforesuccess/success , beforefailure/failure? "before" would be fired before default response processing, other after.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid MultiSearch Plugin, Grid MultiSort Plugin, Configuring ViewModel Hierarchy


  3. #3
    Ext User
    Join Date
    Sep 2007
    Posts
    43

    Default

    a 'beforefileadded' event would certainly help ... now i am trying to work with the 'fileadded' event, but its not so easy to retreive the filename of the added file, because the original filename is not passed directly.

Posting Permissions

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