create folder if not exist
This commit is contained in:
@@ -51,6 +51,10 @@ def upload_image():
|
||||
from werkzeug.utils import secure_filename
|
||||
filename = secure_filename(csv_file.filename)
|
||||
output_file_path = os.path.join(UPLOAD_FODLER, filename)
|
||||
|
||||
if not os.path.exists(UPLOAD_FODLER):
|
||||
os.makedirs(UPLOAD_FODLER)
|
||||
|
||||
csv_file.save(output_file_path)
|
||||
|
||||
# run converter
|
||||
|
||||
Reference in New Issue
Block a user