I would like to allow my users to either upload a file from their computer, or give the url of a file to upload.
Is there a way I can use the HTML file input to achieve both of these? My django backend is easier if the file comes in the POST data.
No, It is not possible to use the <input type="file" /> for both the purposes.
File input cannot process a string value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With