Hiya..
I have a jsp page to upload some files..
The session is used to store a Map ( session.setAttribute("filemap", filemap ) ). This map contains all the files to be uploaded. I have a file-input type, onChange the file here is added to the map. The map is stored in the session and when the page is reloaded, all files in the map can be displayed. Then the user clicks upload, and all the files are uploaded somewhere by some other code.
This works perfectly on my local machine/local host -- on the server however, i've encountered this problem...
When I browse for a file to upload and select it (with the file-input) and the page reloads - files of small file-size will work fine. The page will re-load, the item will be added to the map and displayed on the page. When I select a file with a larger file-size (even 200KB), the page shows a 'page not found' error when it reloads. I'm guessing the session on the server cant hold much space!
Does anyone know how I can get around this? Any help is appreciated!
Thanks
uninvitedm
0
Newbie Poster
Recommended Answers
Jump to PostThe page not found error is normally thrown when the container fails to find the file. It AFAIK, is in no way related to the session space since the session is limited by the amount of physical memory your server machine has.
Without more code or explanation, it would …
All 2 Replies
~s.o.s~
2,560
Failure as a human
Team Colleague
Featured Poster
jwenting
1,889
duckman
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.