I require a method by which users can input files and display the contents of the file in a GWT panel. The contents do not need to be sent to any server and I would prefer to keep the file client-side. I have tried the following:
Used the library lib-gwt-file. It works perfectly in Firefox, mostly works in Chrome, and does not work at all in Internet Explorer. I need to support all these browsers. I have emailed the author of the library but have not received a response.
Used a method such as this to use a FileUpload object and a FormPanel. However, my organization uses a security filter which requires headers be set in order to communicate with the server. I understand that headers cannot be set for a FormPanel.
I have investigated other file upload libraries for GWT such as GWTUpload but they don't really do what I want. I'm not looking to upload the file to my server, I just need the contents of the file client-side.
I am out of ideas and I don't know how I can accomplish this simple task. Does anyone have any suggestions on other methods or ways to get past my current roadblocks?
Thanks.