Ernie and all...,<br><br>Thanks for getting back to me.<br><br>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.<br>
<br>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.<br><br>Shai<br><br><div class="gmail_quote">On Wed, May 14, 2008 at 7:47 AM, Earnie Boyd <<a href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Quoting Shai Gluskin <<a href="mailto:shai@content2zero.com">shai@content2zero.com</a>>:<br>
<br>
> Drupalers,<br>
><br>
> I went looking through my watchdog tonight (really should do that more) --<br>
> at: admin/logs/watchdog<br>
><br>
> and I noticed that there were some page not found errors for file downloads<br>
> like this:<br>
><br>
> File name is: example file.doc<br>
><br>
> The URL that works is:<br>
> <a href="http://example.com/files/example%20file.doc" target="_blank">example.com/files/example%20file.doc</a><br>
><br>
> The URL that is showing up on the watchdog page-not-found entry is:<br>
> <a href="http://example.com/files/example%2520file.doc" target="_blank">example.com/files/example%2520file.doc</a><br>
><br>
> Testing from my own browsers I couldn't repeat the problem.<br>
><br>
> What browser or what situation is causing the space to be replaced by %2520<br>
> instead of %20? Has anyone ever seen this before? Is there a utility for the<br>
> upload module that rips out spaces from file names? I'm having a problem<br>
> with Thickbox having trouble with images with spaces in their names.<br>
><br>
> Looking forward to hear about others' experiences on this one.<br>
><br>
<br>
</div></div>Drupal version and contrib modules list are needed to dissect this.<br>
Looks like the URL is encoded twice by some means. %25 == % [1].<br>
<br>
[1] <a href="http://www.w3schools.com/TAGS/ref_urlencode.asp" target="_blank">http://www.w3schools.com/TAGS/ref_urlencode.asp</a><br>
<br>
Earnie -- <a href="http://for-my-kids.com/" target="_blank">http://for-my-kids.com/</a><br>
-- <a href="http://give-me-an-offer.com/" target="_blank">http://give-me-an-offer.com/</a><br>
<font color="#888888"><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br>