vercel / storage

Vercel Postgres, KV, Blob, and Edge Config
https://vercel.com/storage
Apache License 2.0
517 stars 58 forks source link

fix(blob): Throw when trying to upload a plain JS object #695

Closed vvo closed 5 months ago

vvo commented 5 months ago

Before this commit, customers had sometimes trouble trying to upload a file. For example when using multer, the req.file is not the file but a plain JS object with file details. To upload it you would need to do req.file.buffer.

Fixes #637

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
vercel-storage-next-integration-test-suite ✅ Ready (Inspect) Visit Preview Jun 26, 2024 11:41am
changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: 0eb3f582abee4dcaafe0451d270d7449849f40ce

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages | Name | Type | | ------------------------------------- | ----- | | @vercel/blob | Patch | | vercel-storage-integration-test-suite | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

socket-security[bot] commented 5 months ago

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/is-plain-object@5.0.0 None 0 9.16 kB trysound

View full report↗︎