View Full Version : Is there a way to implement File Handling in ExtJS 4.1.2?

27 Sep 2012, 5:15 AM
Hi All,

I am wondering if there is any mechanism to handle files in ExtJS. I am thinking of read/write/update a text/xml/json file through ExtJS. Please help me on this prespect.

Premkumar. A

27 Sep 2012, 6:00 PM
You can only do the file handling on your server side not on client side.

27 Sep 2012, 8:54 PM
Thank you vietits.

28 Sep 2012, 6:36 PM
To save file on client side:
for non-IE browser, you can use document.location='data:application/octet-stream;base64,SGVsbG8=
for IE, you can use document.execCommand('save', null, 'name')

3 Oct 2012, 8:43 PM
Thanks senmao. But I want the file to be present forever. The file, once it was created may be edited and updated but not deleted. It must not be removed at any cost. If I choose to save the file at client side, I could not relay on its presence. Thus I need to take it to the server. But your information is good thus I could use it in some other situation.