airavata-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/AIRAVATA-3081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16904175#comment-16904175
] 

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 - https://github.com/everydo/tusfilter
** Ran into this error: https://github.com/everydo/tusfilter/pull/10 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 - https://github.com/alican/django-tus
** Didn't try this one out myself but apparently it doesn't support resumable uploads: https://github.com/alican/django-tus/issues/6
* drf-tus - https://github.com/dirkmoors/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: https://issues.apache.org/jira/browse/AIRAVATA-3081
>             Project: Airavata
>          Issue Type: New Feature
>          Components: Django Portal
>            Reporter: Marcus Christie
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Mime
View raw message