00116: Trailing spaces in "'Name attachment as:" lead to rejection of upload

Summary: Trailing spaces in "'Name attachment as:" lead to rejection of upload
Created: 2004-10-26 07:00
Status: Closed - fixed for 1.0.13
Category: Bug
From: Henning
Assigned:
Priority: 3
Version: 1.0.11
OS: Linux/Apache 2

Description: If trailing spaces are entered in the "Name attachment as:" field of the upload page, they are considered part of the file type extension and the upload is rejected because the extension + space is not in the upload extension list.

This tends to enrage naive authors - I've got one standing next to me right now, and she's threatening to kill me for putting up that kind of obstacle for her ;-)

Ironically, the trailing space is actually removed in the rejection message, so that it appears to indicate rejection of a extension complying to the upload extension list.

(There is a good likelihood of trailing spaces being entered when files are overwritten on the server because it's necessary to re-enter the original name again - if local and server file name are different, at least.

I advise authors to copy the name from the file list at the bottom of the upload page to avoid typos, but depending on the behavior of the browser this can lead to the clipboard picking up unwanted - and un-noticed - trailing spaces.)


Interesting. Fixed in 1.0.13 so that leading and trailing spaces are removed from the upload name field. --Pm


Thanks a lot for the lightning-quick response! You virtually saved my life ;-) --Henning October 28, 2004, at 04:19 AM