airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <>
Subject [jira] [Commented] (AIRAVATA-3081) Use tus for file uploads
Date Fri, 09 Aug 2019 20:47:00 GMT


Marcus Christie commented on AIRAVATA-3081:

I investigated using a Python package for adding Tus server backend to the Django portal.
Unfortunately none of the available options are completely satisfactory:
* TusFilter -
** Ran into this error: that prevented an upload.
The fix is provided in the pull request but this would require maintaining a separate fork
since the project looks dead
* django-tus -
** Didn't try this one out myself but apparently it doesn't support resumable uploads:
* drf-tus -
** I got this working and overall I'm pretty impressed by this one. However, it doesn't allow
customizing where file uploads go (neither the temporary destination nor the final destination).
It's possible to customize these locations but it would require subclasses and substituting
the upload handler and upload model. Also, it is somewhat biased to uploaded files into the
/media folder although perhaps that can be worked around as well.

In general my impression is that tus protocol just isn't popular enough for a well maintained
Python server implementation. I think using the official tusd backend would be the best approach.

> Use tus for file uploads
> ------------------------
>                 Key: AIRAVATA-3081
>                 URL:
>             Project: Airavata
>          Issue Type: New Feature
>          Components: Django Portal
>            Reporter: Marcus Christie
>            Priority: Major

This message was sent by Atlassian JIRA

View raw message