fixed filename in dal storage, thanks Marin
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.2.1 (2012-12-03 17:38:35) stable
|
||||
Version 2.2.1 (2012-12-03 18:01:57) stable
|
||||
|
||||
+1
-1
@@ -8558,8 +8558,8 @@ class Field(Expression):
|
||||
if self.custom_store:
|
||||
return self.custom_store(file,filename,path)
|
||||
if isinstance(file, cgi.FieldStorage):
|
||||
file = file.file
|
||||
filename = filename or file.filename
|
||||
file = file.file
|
||||
elif not filename:
|
||||
filename = file.name
|
||||
filename = os.path.basename(filename.replace('/', os.sep)\
|
||||
|
||||
Reference in New Issue
Block a user