alican / django-tus

Django app implementing server side of tus protocol to powering resumable file uploads for django projects. More Info about: http://tus.io/
MIT License
49 stars 32 forks source link

Creating a new file of size 0 fails #25

Open RubenGarcia opened 3 years ago

RubenGarcia commented 3 years ago

Description

Uploading a file of size zero (HTTP_UPLOAD_LENGTH = "0") results in https://github.com/alican/django-tus/blob/master/django_tus/tusfile.py#L126 seek (-1) which is not caught.

What I Did

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.