I am trying upload 3.51 MB file using <input type="file"> and JSP and Glass Fish V3 Domain. I came to know it may be the size of the file is larger than the capacity. I found this error with successful run, when running the page first time, in Glash Fish:
If I restart the server, before running 2nd time the problem is gone temporarily.
How to solve this? and
I want to upload a specific file every time, without using <input type="file">. Is this possible?