1
1
109k42021-01-18 00:21:13
Django
109k4, 2021-01-18 00:21:13

How to protect ImageField in Django from downloading malicious files?

How to prevent loading non-images, including fake images in an ImageField?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lillipup, 2021-01-18
@109k4

Add validation
https://docs.djangoproject.com/en/3.1/ref/validators/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question