Skip to content

Replacing our Tus upload integration with TusPHP.#186

Merged
erunion merged 4 commits intov3-devfrom
better-tus-integration
Nov 15, 2018
Merged

Replacing our Tus upload integration with TusPHP.#186
erunion merged 4 commits intov3-devfrom
better-tus-integration

Conversation

@erunion
Copy link
Copy Markdown
Contributor

@erunion erunion commented Nov 15, 2018

With these changes, I was able to upload video files that ranged from 13-793MB large. Since the default PHP memory limit is 128MB, we're uploading in 100MB chunks, so anything larger than what I've tested with should function just as well.

Since this is a breaking change, this'll be tagged released as v3.0.

Resolves #168

@erunion erunion changed the title Replacing our Tus upload integration with ankitpokhrel/tus-php. Replacing our Tus upload integration with TusPHP. Nov 15, 2018
Copy link
Copy Markdown

@Onebrownsound Onebrownsound left a comment

Choose a reason for hiding this comment

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

LGTM. Nice to see parity between the SDKs. One minor comment, but other than that gj!

'Upload-Offset: {placeholder}',
)
);
$base_url = str_replace($url_path, '', $url);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is okay for now, imo. But maybe mark this as a #TODO to export into it's own static function that takes in the path and returns all the necessary pieces, as a list or something. For testability and such.

@erunion erunion changed the base branch from master to v3-dev November 15, 2018 20:57
@erunion erunion merged commit 573c6a4 into v3-dev Nov 15, 2018
@erunion erunion deleted the better-tus-integration branch November 15, 2018 20:57
@erunion erunion mentioned this pull request Nov 15, 2018
Merged
3 tasks
@ghost
Copy link
Copy Markdown

ghost commented Jan 9, 2019

I'm using PHP 7.2 and Vimeo 3.0 but I can't upload big files using tus approach (PATCH).
I receive a message like this: SSL_write() returned SYSCALL, errno = 32
I can complete the upload only if I use very small videos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants