Erpnext v9.0.3 file manager upload error

use “file manager”, upload a file ,no success! error information:

Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 109, in uploadfile
ret = frappe.utils.file_manager.upload()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_manager.py”, line 35, in upload
file_doc = get_file_doc()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_manager.py”, line 66, in get_file_doc
file_doc = save_uploaded(dt, dn, folder, is_private)
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_manager.py”, line 75, in save_uploaded
return save_file(fname.encode(‘utf-8’), content, dt, dn, folder, is_private=is_private);
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/file_manager.py”, line 148, in save_file
f.insert()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 218, in insert
self.run_before_save_methods()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 809, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 702, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 924, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 907, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 696, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/file/file.py”, line 72, in validate
self.validate_file()
File “/home/frappe/frappe-bench/apps/frappe/frappe/core/doctype/file/file.py”, line 141, in validate_file
if not os.path.exists(get_files_path(frappe.as_unicode(self.file_name.lstrip("/")))):
File “/home/frappe/frappe-bench/env/lib/python2.7/genericpath.py”, line 18, in exists
os.stat(path)
UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 26-34: ordinal not in range(128)

help me ,please?

Dear Cloudsunsky, that error was also disturbing but I solved it very easily. You must first save the Document or the form your dealing with before you upload any file. Hope this helps you