Ernie and all...,
Thanks for getting back to me.
I'm using Drupal 5.7. I'd list modules but I'm almost certain now that the problem isn't a Drupal problem. I'm pretty sure the problem occurs when someone attempts to provide a direct url to the file and sends it via e-mail -- and then somebody's email client messes up the URL. The "refferer" URL's are usually missing from the watchdog page which means the links aren't coming from inside Drupal.
Even though this problem isn't being caused by Drupal, I'd still love to have a way to strip out spaces from file names upon upload just to prevent this problem.
Shai
Drupal version and contrib modules list are needed to dissect this.Quoting Shai Gluskin <shai@content2zero.com>:
> Drupalers,
>
> I went looking through my watchdog tonight (really should do that more) --
> at: admin/logs/watchdog
>
> and I noticed that there were some page not found errors for file downloads
> like this:
>
> File name is: example file.doc
>
> The URL that works is:
> example.com/files/example%20file.doc
>
> The URL that is showing up on the watchdog page-not-found entry is:
> example.com/files/example%2520file.doc
>
> Testing from my own browsers I couldn't repeat the problem.
>
> What browser or what situation is causing the space to be replaced by %2520
> instead of %20? Has anyone ever seen this before? Is there a utility for the
> upload module that rips out spaces from file names? I'm having a problem
> with Thickbox having trouble with images with spaces in their names.
>
> Looking forward to hear about others' experiences on this one.
>
Looks like the URL is encoded twice by some means. %25 == % [1].
[1] http://www.w3schools.com/TAGS/ref_urlencode.asp
Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/
--
[ Drupal support list | http://lists.drupal.org/ ]