Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
grisuno committed Jun 27, 2024
1 parent 2e0e4d4 commit 6dc89e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ def download_file(filename):

@app.route('/upload', methods=['POST'])
def upload_file():
print(request) # Imprime la solicitud para depuración
print(request.files) # Imprime el diccionario de archivos en la solicitud
print(request.form) # Imprime el diccionario de otros datos del formulario
if 'file' not in request.files:
return f'No file part{request}', 400

print('Request files:', request.files)
print('Request form:', request.form)
# if 'file' not in request.files:
# return f'No file part{request.input_file}', 400

file = request.files['file']
filename = secure_filename(sanitize_filename(request.form.output_file_name.data))
Expand Down

0 comments on commit 6dc89e1

Please sign in to comment.