Upload a file with html and process it with python
Profile icon
[deleted]
Hi, I would like to ask the following:
Is there a simple way to process a file uploaded via html using python? I tried many tutorials that didn't work or were to complicated to adjust to my wishes. The code should do the following:
Get the output from a html
<input type='file'>
tag
2. Process it using my script which will generate a file name and create a file (With the content of the uploaded file)
Upload a file with html and process it with python
Hi, I would like to ask the following:
Is there a simple way to process a file uploaded via html using python? I tried many tutorials that didn't work or were to complicated to adjust to my wishes. The code should do the following:
tag
2. Process it using my script which will generate a file name and create a file (With the content of the uploaded file)
Thanks in advance
-nedniw
You need a web server to do this. You can use python flask, which it seems like you’ve done but create a python repl instead.