I have a filefield in a document model from which i can upload files like this
document=models.FileField(max_length=350 ,validators=[FileExtensionValidator(extensions)])
uploading is working good, now i want to implement download feature for the frontend, but only those files which are uploaded by the user.
using url method is think less secure,
another way i saw is creating download function in the views,
and another i saw using nginx i can implement.
Kindly guide me which method is best, and what steps to take to implement the download feature, and will i need docker too if i am using nginx?
i have found another way, there is a library which makes everything alot easier named as django_downloadview. it solved the problem for now lets see what happens in the future.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.