on 11-06-2014 5:42 AM
Hi All,
I am using sap.ca.ui.FileUpload . There is a getSize function which return the file size from the model . Is there a way to find it before upload so that upload could be stopped for above a set Threshold ? Currently as soon as plus button is pressed , upload starts .
Kindly suggest.
Regards
Mayank Jain
Hi,
Use beforeUploadFile event which triggers before fileupload.
Sample code to get the file that user tries to upload.
onBeforeUploadFile: function (e)
{
uFile = this.byId("fileupload").getModel().getData().dataitems[0];
}
uFile.size will have the size of the file.
Hope this will be useful!
Regards,
Meganadhan S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.