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

companion: fix uploader protocol validation #2197

Merged
merged 3 commits into from
Apr 14, 2020

Conversation

ifedapoolarewaju
Copy link
Contributor

fixes #2188

.set('uppy-auth-token', token)
.set('Content-Type', 'application/json')
.send({
endpoint: 'http://master.tus.com/files',
Copy link
Member

Choose a reason for hiding this comment

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

Is that endpoint correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it doesn't matter much in this case, it's only required to be a valid URL.

Copy link
Contributor

Choose a reason for hiding this comment

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

Then maybe we should change it to something random, so that someone doesn't get confused accidentally?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated the URL to the correct tus URL

@arturi
Copy link
Contributor

arturi commented Apr 14, 2020

Won't be able to review properly to get it in the next release, please feel free to merge if it works locally for you :)

@ifedapoolarewaju ifedapoolarewaju merged commit b27d678 into master Apr 14, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix-s3-multipart-protocol branch April 14, 2020 12:32
@@ -164,7 +184,7 @@ describe('download provdier file', () => {
.set('uppy-auth-token', token)
.set('Content-Type', 'application/json')
.send({
endpoint: 'http://master.tus.com/files',
endpoint: 'http://master.tus.io/files',
Copy link
Member

Choose a reason for hiding this comment

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

Wont it be confusing to see a tus endpoint while this is about s3 multipart? Even if it doesn’t matter for the test, folks will see this and draw bad conclusions or walk away in a confused state

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I basically seconded that and meant to say “let’s use a random url in that case”, should have phrased it better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed on master

HeavenFox pushed a commit to docsend/uppy that referenced this pull request Jun 27, 2023
* companion: fix uploader protocol validation

fixes transloadit#2188

* test: use correct tus URL

* companion: make it support node 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug with Companion Providers and S3 multipart upload at same time
3 participants