What are the different ways of accessing file system on the client side?

Tech Insights

If I want to access the file system on the client side what are the possible ways? What if I need this when I do a file upload and I don’t want to use the server to check this. No request will be sent to the server from the client side.

Remember, if I use an applet, I will need to sign it and user will get a confirmation message saying its not from a trusted source and all. I actually wanted to avoid this.

If we use AJAX for file upload, that will also contact the server to find out how many bits have been transferred.

Now you may ask that y can’t we use AJAX kind of technologies to use the server to find out the file size, but I wanted to check whether there is any client side technology, which can be used in situations like this.

Another reason : For large files, the JVM will take tremendous amount of heap size which will make the applications behave strangely for some time.

Then you may ask, why can’t we increase the max heap size, but how much?

We can set the heap min and max size limit in the server’s configuration files so that it will be set when it starts, but is there any fixed way of setting the min and max value of heap? Is it good to give a large value? say for a  4 GB server what about giving 2 GB max heap size?

We can resolve these types of issues if we have some kind of client side technology to access the file system.

Thanx,

Sandeep