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?
--
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
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
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
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