View Full Version : 2 question about Ext.ux.UploadForm
craneleeon
27 Aug 2007, 7:54 PM
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.
jsakalos
1 Sep 2007, 2:52 PM
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.
bowa
12 Nov 2007, 11:54 PM
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.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.