fix gpx upload - #28

the temp directory path may differ depending on OS
This commit is contained in:
Sam 2018-12-31 11:22:26 +01:00
parent 07aa95838a
commit 154282e19a

View File

@ -295,7 +295,7 @@ def get_new_file_path(
if not os.path.exists(dir_path):
os.makedirs(dir_path)
file_path = os.path.join(dir_path,
new_filename.replace('/tmp/', ''))
new_filename.split('/')[-1])
return file_path