Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryFiles Getting A [X] Added To The Filename When DownloadingFiles Getting A [X] Added To The Filename When Downloading
Previous
 
Next
New Post
3/14/2006 4:13 PM
 

I figured I'd post this here instead of bugging Steve directly in case someone has a solution.

The files one of my sets of users would be uploading have two extensions on them for use in a racing simulation (.cup.car, .cts.car, .bgn.car, etc) that others can download so that they can see the uploaders paint scheme when racing against each other. The problem is that because there's two extension everytime some tries to download a file in IE it renames it file[1].ext1.ext2 which won't work (Firefox doesn't add the [x]).

I got around this before by removing the GUID insertion and uploading the straight file. Also when the user downloads it I dropped the streaming section that's used by the Repository and provided a Response.Redirect straight to the file path. Unfortunately I've run across a possible situation where there's a possibility of a duplicate file existing (one of the reasons the GUID is used).

Does anyone have any ideas how to get around IE adding the [x] to the file when it's downloaded?

 
New Post
3/14/2006 6:13 PM
 

Mike,
Always feel free to bug me .. .anytime

This is the normal behavior of Internet Explorer, and there's absolutely nothing you can do about it .. but if you understand what's happening, I don't think you'll be too worried about it..

When you download a file using IE, you normally have 2 choices, Open or Save. If you selection Open, then IE will download the file to your Temporary Internet Files folder, then open it with the default application for the file extension. Now, if you select the same file again, or another file with the same name, IE cannot save a temporary copy of the file in your Temporary Internet Files folder without overwriting the old one, so IE will add [n] to the filename to make it unique, first [1], then [2], etc.

If your users elect to Save the file to their local hard disk somewhere, instead of Open, then IE will not append the [n] and even if you download the same file 10 times, but elect to Save it, IE will ask if you want to overwrite the old file.

As I said, this is the behavior of IE and there's nothing you can do about it,

 
New Post
3/14/2006 6:26 PM
 

Ahhh I didn't realize that it would actually drop the [x] (never tested it beyond seeing the brackets and thinking, "Well, that's not gonna work".).

I have some testing to do tonight me thinks.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryFiles Getting A [X] Added To The Filename When DownloadingFiles Getting A [X] Added To The Filename When Downloading


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out