how can i know the entire filepath from filefield in python flask

Viewed 21

I am having a separate html page for the file upload and separate app.py file...in app.py i have a function to upload the file in s3 bucket(aws).below code of python shows why i need the file path

s3.meta.client.upload_file('filepath', 'bucketName', 'filename')

how can i get the file path from my file input.

<input type="file" name="inputFile" autocomplete="off" required onchange="loadFile(event)">
0 Answers
Related