aspose file tools*
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
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?