1๐
I would recommend you to take a read on Django documentation: File uploads. It is a bit lengthy to post any code in here, but it has got excellent examples which suit right in your case. They mention in detail how to build your form and your view as well as how to handle the posted file, all of that in a single official document.
๐คWtower
Source:stackexchange.com