fixed filename in dal storage, thanks Marin

This commit is contained in:
mdipierro
2012-12-03 18:02:45 -06:00
parent 5347bd03f1
commit 07afe71f37
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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)\