on 04-22-2016 12:26 PM
Dear all,
I have fileuploader and button that will triggered my file reader script.
i want to read the file after click the button 'Upload' without upload the file. Just to read the content
How to do that? I tried with this.getView().byId('fileuploaderId').files[0] but i got an error...
Thanks
Best Regards
Yoppie A.
Hi Yoppie,
try something like that
JS Bin - Collaborative JavaScript Debugging
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yoppie,
typically the file may not be easily readable directly on the client side due to browser security restrictions, etc... if you do use the file uploader control from sapui5, you need to post the content of the file to an xsjs service where you can read it and respond to the client side function with its content. is this what you are trying to avoid or is this ok to do for you?
hope this helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yoppie,
This may help you.
Thanks,
Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
google js read local file
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
9 | |
9 | |
7 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.