lundi 10 octobre 2016

How to check if a file is empty avoid reading the whole file?

I am using django and want to check if a uploading file is empty, but avoid uploading or reading the whole file to get the file size, because it might be huge and take time to calculate.




Aucun commentaire:

Enregistrer un commentaire