Debut de correction du probleme des fichiers accentues
darcs-hash:20070928020240-c992d-cff466cfd92944dbd01711643dfc70af926df372.gz
This commit is contained in:
parent
97a2870dc9
commit
0cec4de33c
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ class main(ModuleBase):
|
|||
file_folder = os.path.join(FILE_UPLOAD_BASE_FOLDER, cherrypy.session['uid']+"/")
|
||||
if not os.path.isdir(file_folder):
|
||||
os.makedirs(file_folder)
|
||||
newFilePath = os.path.join(file_folder, aFile.filename)
|
||||
newFilePath = os.path.join(file_folder, aFile.filename.encode('ascii','ignore'))
|
||||
shutil.move(tempFileName, newFilePath)
|
||||
crans.cp.log("New file uploaded at : %s" % newFilePath, "IMPRESSION")
|
||||
return newFilePath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue