TG-62 template et API insert

This commit is contained in:
DonRenando
2017-03-31 12:28:00 +02:00
parent aa6a2bc0bb
commit ab33fb2bbe
11 changed files with 132 additions and 46 deletions

View File

@ -55,15 +55,14 @@ def allowed_file(filename):
def upload_file(file_to_upload, upload_folder):
"""
rep de l'etu avec id
:param file:
televersement d'un fichier
:param file_to_upload:
:param upload_folder:
:return:
"""
file_to_upload.save(os.path.join(upload_folder, secure_filename(file_to_upload.filename)))
def delete_file(pdf_path):
if os.path.exists(pdf_path):
os.remove(pdf_path)