We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No response
Upload expects to complete successfully AND event completes
Upload completes fine but onComplete is not called because missing etag shortcircuits the function
From GCS: https://cloud.google.com/storage/docs/metadata
Etag is not expected to return unless using XML API. While I can copy/paste the provider, this should work with GCS as well.
The text was updated successfully, but these errors were encountered:
The intermediate fix is to just clone the entire AwsS3 provider and implement it myself
instead of parsing eTag / location from the header, it's parsed from the response body
static parseXMLResponse(xml: string | null) { if (!xml) { return {}; } const parser = new DOMParser(); const doc = parser.parseFromString(xml, "application/xml"); const etag = doc.querySelector("PostResponse ETag")?.textContent; const location = doc.querySelector("PostResponse Location")?.textContent; return { etag, location }; }
Sorry, something went wrong.
No branches or pull requests
Initial checklist
Link to runnable example
No response
Steps to reproduce
Expected behavior
Upload expects to complete successfully AND event completes
Actual behavior
Upload completes fine but onComplete is not called because missing etag shortcircuits the function
From GCS:
https://cloud.google.com/storage/docs/metadata
Etag is not expected to return unless using XML API. While I can copy/paste the provider, this should work with GCS as well.
The text was updated successfully, but these errors were encountered: