Commit 2b2d4857 authored by Cervinko Cera's avatar Cervinko Cera

upload more than pdf fixes

parent fee60bb2
...@@ -1140,7 +1140,7 @@ def upload(): ...@@ -1140,7 +1140,7 @@ def upload():
title = meta.title title = meta.title
author = meta.author author = meta.author
title_dir = helper.get_valid_filename(title, False) title_dir = helper.get_valid_filename(title.decode('utf-8'), False)
author_dir = helper.get_valid_filename(author.decode('utf-8'), False) author_dir = helper.get_valid_filename(author.decode('utf-8'), False)
data_name = title_dir data_name = title_dir
filepath = config.DB_ROOT + "/" + author_dir + "/" + title_dir filepath = config.DB_ROOT + "/" + author_dir + "/" + title_dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment