From: Antony C. <an...@sm...> - 2006-10-19 16:08:40
|
Dear Bodders, please let me introduce myself... Anyway, we've noticed weird things happening with file names that have spaces in them when uploaded to a pigeon hole (tried telling users not to do this but try telling a monkey not drag it's knuckles on the floor). So looking at the code in PigeonHoleFacility.upload(...) I noticed that the file name is encoded at line 610 file_name = UploadedFile.nameToURL( file_name ) but this seems a bit premature as the name is then saved with %20 in the db (correct for url but not for name) and isn't done in the upload method in Facility. Commenting out this line seems to correct the error but there may be a weird and wonderful reason for this (two uses of the word weird in one Bod email!). Any comments?...John? Cheers, Antony |