This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Choosing 'open' in file download adds [1] to filename? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Choosing Watch "Choosing New topic
Author

Choosing 'open' in file download adds [1] to filename?

R Laksh
Greenhorn

Joined: Aug 27, 2003
Posts: 25
Hi,

I have a program where the user can download the file in csv
format. I am using jsp and when the file dialog appears, if we choose open, the file name is having [1] appended to it.

And the excel worksheet has a invalid name.

Ex. File name - laksh.csv

It appears as <b>laksh[1].csv </b>
and worksheet name appears as <b>.csv]laksh[ </b>

I dont want this to happen.

I am giving the file unique name by appending the file name with current time & also tried the same by deleting all the cache.

Can anyone help me to come out of this problem?
Thanks
Regards
R Laksh
Greenhorn

Joined: Aug 27, 2003
Posts: 25
Hi,

I have a program where the user can download the file in csv
format. I am using jsp and when the file dialog appears, if we choose open, the file name is having [1] appended to it.

And the excel worksheet has a invalid name.

Ex. File name - laksh.csv

It appears as laksh[1].csv
and worksheet name appears as .csv]laksh[
I dont want this to happen.

I am giving the file unique name by appending the file name with current time & also tried the same by deleting all the cache.

Can anyone help me to come out of this problem?
Thanks
Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Choosing 'open' in file download adds [1] to filename?
 
Similar Threads
Problem downloading CSV file in Internet Explorer.
How do I aoid the download screen ??
Cannot get Netscape 6.1 to open save as dialog box
styling in excel sheet
Open CSV file in a html frame using JSP