I would like to know if there is a way for FastAPI to receive a URL of a file as a parameter and save this file to disk? I know it is possible with the requests
library using requests.get()
method, but is it possible with FastAPI to receive the URL and save it directly?
I tried using file: UploadFile = File(...)
, but then it doesn't download the file when the URL is sent.