Django download files directly from S3 bucket to browser downloads folder
At the moment I am downloading files directly to my desktop from Django, it is possible to change the code so that when a user accesses my report the files will download directly into their browser downloads folder?
My code below
s3.Bucket(bucket_name).download_file(item, f'/Users/user_name/Desktop/filename.txt')