[Zope] File objects with illegal characters

2005-08-29 Thread Peter Bengtsson
What is the best way to deal with file uploads with illegal characters? I have no problem stripping the filenames such that _Peter[1].doc becomes Peter1.doc before it's manage_addFile'ed. But suppose I want to maintain the exact filename as it was on the harddrive, how do you deal with that? --

Re: [Zope] File objects with illegal characters

2005-08-29 Thread Jens Vagelpohl
On 29 Aug 2005, at 16:13, Peter Bengtsson wrote: What is the best way to deal with file uploads with illegal characters? I have no problem stripping the filenames such that _Peter[1].doc becomes Peter1.doc before it's manage_addFile'ed. But suppose I want to maintain the exact filename as it

Re: [Zope] File objects with illegal characters

2005-08-29 Thread Peter Bengtsson
What is the best way to deal with file uploads with illegal characters? I have no problem stripping the filenames such that _Peter[1].doc becomes Peter1.doc before it's manage_addFile'ed. But suppose I want to maintain the exact filename as it was on the harddrive, how do you deal

Re: [Zope] File objects with illegal characters

2005-08-29 Thread Dieter Maurer
Jens Vagelpohl wrote at 2005-8-29 16:17 +0100: ... If a filename is illegal as a URL then that's that. In fact, an URL does not disallow any characters. It only requires that some of them need to be escaped. Thus, a Zope id could contain any character, would Zope properly escape all characters

Re: [Zope] File objects with illegal characters

2005-08-29 Thread Jens Vagelpohl
On 29 Aug 2005, at 18:39, Dieter Maurer wrote: Jens Vagelpohl wrote at 2005-8-29 16:17 +0100: ... If a filename is illegal as a URL then that's that. In fact, an URL does not disallow any characters. It only requires that some of them need to be escaped. Thus, a Zope id could contain any