On Fri, Dec 12, 2008 at 08:13:19AM +1030, Antony Blakey wrote: > URL encode filenames, if the filename length is > X then take a prefix and > append an MD5 of the full name. No problem. That was my original > suggestion. Maintain a mapping document for in case X is small, although IMO > that's a good idea anyway because it's an absolute fallback and guarantees a > lossless transformation. > > Caveat emptor isn't a great design philosophy.
Well, you could always return an error if truncation is needed. I think doing the MD5 stuff is a little OTT. -- Noah Slater, http://tumbolia.org/nslater
