DEV Community

reza shakeri
reza shakeri

Posted on

 

file validation in python Much easier and more reliable

file validatorIf you are looking for a safe way to validate your files, the file validator library will do this for you, this library also supports Django.With this library you can validate files based on extension, size, mimes and magic numbers

  1. File validation using the filetype library

  2. File validation using the python-magic library

  3. File validation using the mimetypes library

  4. File validation using the puremagic library

  5. File validation with Size

  6. Supporting for all mimes

  7. File validation simultaneously with all four libraries

You can access it through the link below

file validator

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.