DEV Community

Discussion on: Upload multiple images to your Django app using Dropzone Js

Collapse
 
ionecum profile image
ionecum • Edited

Hello, good tutorial but an error, some inaccuracies and even additional questions should be raised:

  1. In views.py return JsonResponse({'post':'false'})

It's 'false', not 'fasle'.

  1. The js scripts in base.html should always be put at the end. It is a SEO good practice and in general.

  2. Why do you import JQuery if you don't use it?

  3. Is it really necessary to import so many scripts?

  4. What about accepting more filetypes? jpg is not the only one. And if I want to accept more?

  5. What is the Dropzone object and what does it do? You should explain things, not only put the way to do them.

  6. Why does main.js is imported before dropzone.js? And what is defer?

  7. How about remove an uploaded picture? In drag and dropping multiple files he may have a mistake.

I think the most important point is 8. In real world applications, adding an "x" to remove wrongly uploaded images is really important. And, if your tutorial is really for beginners, you should definitively teach the way to do it.