Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File upload fails

 
Joly Mathew
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
We have developed an upload module , which helps the user to upload
MP3 files to the server.
Module contains two parts 1. is the the servlet deployed in WAS 3.5.5 which reads the Httprequest and parse it and save the file to a temporary directory.
At the Client end we got a JSP file containing HTML form with 'file' input type and enctype set to 'multipart/form'.

Everything works fine when the entire setup is in intranet.

But when I try to upload the file to our production server which is in Internet, files are not uploading , infact I recieve , 'page cannot be displayed error' after sometime.

Just to isolate the issue I tried the O'reilly upload component in the same setup , but got the same error. further I emptied the parsing code in servlet and deployed it with a one system.out.printl statement. But again when I tried to call the servlet using the same HTML form, it comes with the same error .

I found that files with very small size (uptp 100KB) are getting uploaded .

Could any one advice us , what is going wrong with the component/network/server setup?

Thanks & Regards,
Joly Mathew
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check with your network admin is there any firewall or proxy server and if yes the settings.
 
Chandra Sekhar
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

While using the Orielly componet i had similar kind of problem...

Now i'm using the constructor which specifies the maximum size for the upload..this fixed my issue with upload of small files(< 500kb)..

Still I dont know how do some validations at the client side if user selects to upload a file of very large size..

Try this...




Chandrasekhar S.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic