Open RubenGarcia opened 3 years ago
This is not the latest git; will check which version works.
I checked the code in more detail. The actual problem is the line self.file_size = int(cache.get("tus-uploads/{}/file_size".format(resource_id))) where the cache is returning None.
We are running our server in uwsgi, with 6 processes and 2 threads per process, and django cache is set to {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
The README for this project should mention that running on uwsgi needs changes to the default cache backend. I'll send a patch once I get it working.
https://github.com/alican/django-tus/pull/26 closes this.
Description
I added some code to verify parameters before forwarding the django call to django_tus: urls.py:
tus.py:
This is working well for upload and post, but is failing in patch with the following error:
I think the resource_id is not being passed; but I could not find a tutorial on how to do this.
What I Did
b.zip