Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Add TUS file upload #106

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

daniellienert
Copy link
Contributor

@daniellienert daniellienert commented Nov 10, 2021

This feature adds file upload via TUS (https://tus.io/) protocol. This brings the following advantages:

  • Files are split into chunks, which makes uploading of files of any size possible (independent from the servers max_upload limit)
  • Uploads of the chunks can be resumed, which makes uploads of large files stable even with shaky connections

To discuss:

  • Should graphQL upload be removed -> will stay
TUS.Upload.1.mov

Resolves: #61

@daniellienert daniellienert changed the title FEATURE: Add first draft of tus upload backend FEATURE: Add TUS file upload Nov 10, 2021
@daniellienert daniellienert changed the title FEATURE: Add TUS file upload DRAFT: FEATURE: Add TUS file upload Nov 10, 2021
@daniellienert daniellienert added the Feature A new feature label Nov 10, 2021
@daniellienert daniellienert force-pushed the feature/use-tus-for-upload-on-separate-endpoint branch from 41afe25 to 2ee5eb9 Compare November 10, 2021 12:33
@daniellienert daniellienert changed the title DRAFT: FEATURE: Add TUS file upload FEATURE: Add TUS file upload Nov 19, 2021
* source code.
*/

use Carbon\Carbon;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This dependency doesn't seem to be included in the composer.json. Maybe we can get rid of this and replace the one method used?

*/
public function getTtl(): int
{
return 60*60*24;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should go right?

uploadFiles(files)
.then(() => {
Notify.ok(translate('uploadDialog.uploadFinished', 'Upload finished'));
refetchAssets();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any replacement for the call to refetch the assets?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement TUS Support
3 participants