• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem downloading a file

 
Uma Balu
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have a JSP file which will display a link. On click of the link, it will try opening a csv file from the server, the option is given to the user to either save or open the file from the same location. When the user tries to save the file, the save dialog box displays the name like "filename[1].csv". How to avoid this autonumbering with the file name?? The code that I have used is

Is there any other better approach???
Thanks and Regards,
Uma.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, there isn't anything much you can do about this as it is a client-side operation controlled by the browser.
bear
 
Uma Balu
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Yes, that was argument, but this has been posted a bug by the QA and we ought to find a way out... any resources that you can point to???
Thanks,
Uma..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's an admirable attitude. Since any possible solution (I wouldn't get my hopes too high) would probably be browser-specific, I'd start at the MSDN site to see if there are any IE-isms that might help out.
good luck,
bear
P.S. Let me know if you'd like this topic transferred to the HTML forum where the browser-savvy tend to hang out. I'm going to keep it here for the time being (unless you ask otherwise) in case anyone knows of any server-side MIME content-type magic that might help you out.
 
Uma Balu
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear....
Hmm.. That's nice idea, let me try if there are any IE specific headers available.
Thanks a lot,
Uma.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic