import sys
import warnings
from cgi import escape
+from urllib import unquote
from OFS import Moniker
from ZODB.POSException import ConflictError
import OFS.subscribers
"""
self.dav__init(REQUEST, RESPONSE)
-
- fileName = REQUEST.getHeader('X-File-Name', '')
+ fileName = unquote(REQUEST.getHeader('X-File-Name', ''))
validId = makeValidId(self, fileName, allow_dup=True)
ifhdr = REQUEST.get_header('If', '')
req.open("PUT", this.uploadUrl);
req.setRequestHeader("Content-Type", file.type);
- req.setRequestHeader("X-File-Name", file.name);
+ req.setRequestHeader("X-File-Name", encodeURI(file.name));
addListener(reader, 'load',
function(evt){
try {