-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Protocol is always s3-multipart for remote file uploads with the AwsS3 uploader even with shouldUseMultipart set to false #5515
Comments
@StrixOSG did you find any solution? |
Nothing yet. I tried intercepting the request as a workaround and changing the protocol to 'multipart' but it appears to be more involved then that as it now says "no destination specified" |
@mifi any thoughts? |
do you mean it used
AFAIK Companion always uses (and has always used) uppy/packages/@uppy/aws-s3/src/index.ts Line 927 in 8f04c32
Companion has never supported s3 non multipart for remote files (e.g. google drive). So I'm not sure exactly what's the problem here. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
I wonder if this is actually an issue. With the rights bucket settings, you can easily accept both? |
I vaguely remember that we never implemented a non-multipart s3 in companion because the backend is not so sensitive to bandwidth, like the frontend (multipart has a lot more HTTP calls and orchestration in order to upload a file compared to s3 non-multipart, but in a backend with fast connection this shouldn't make much of a difference). So unless there are any good reasons to implement s3 non-multipart in the backend, then we probably shouldn't prioritize it.
Are you saying that in v3 you're able to use pre-signed URLs in companion with s3 non-multipart? if so, can you show a code example of how you do that? |
So you're right it still used "multipart" in the backend but it was Here's an example of the front-end code we have going:
In the backend we don't have any S3 configuration at all, and of course that caused errors in the new version for v4 of uppy as it is now telling companion to use |
Initial checklist
Link to runnable example
No response
Steps to reproduce
Choose a remote provider such as Google Drive with AwsS3 as the uploader and uploading files will always be 's3-multipart' even with shouldUseMultipart set to false.
Expected behavior
In previous versions as we recently upgraded from v3 to v4 of Uppy it used 'multipart' and not 's3-multipart' for uploading remote files. I would expect this to still be the case or that you can choose with either passing in the protocol, or with shouldUseMultipart being set to false. This is a problem as we generate the pre-signed urls beforehand to upload to and does not fit nicely in our flow to have to switch to 's3-multipart'.
Actual behavior
When AwsS3 is the uploader, uploading files from remote sources like Google Drive will always be 's3-multipart' instead of 'multipart' even with shouldUseMultipart set to false.
The text was updated successfully, but these errors were encountered: