Commit graph

17 commits

Author SHA1 Message Date
prakash
9f88450929
update comments , update type casing and update examples based on feedback 2026-06-20 01:56:45 +05:30
Prakash
50de6d1066
update aws-nodejs examples (#6187)
- removed old examples , entirely remove withCustomEndpoints.html as
every s3 operations are now handled by s3mini so no need of it.
- add new examples and update README.md
2026-06-17 13:54:47 +05:30
Prakash
3529f97899
fix signature mismatch in @uppy/aws-s3 (#6165)
shouldUseMultipart: true was not working due to signature mismatch

AI summary :

This pull request improves support for specifying the `contentType`
during S3 uploads, ensuring that the correct content type is set when
generating presigned URLs for both single and multipart uploads. It also
updates the client-side and server-side code to handle this new
parameter.

**Backend and API enhancements:**
- Updated the `/s3/presign` endpoint in `index.js` to accept an optional
`contentType` parameter and to include it in the S3 `PutObjectCommand`
and `CreateMultipartUploadCommand` requests, defaulting to
`'application/octet-stream'` if not provided.
[[1]](diffhunk://#diff-0c4471088c62917198e1438777b4c7e78fd4d87d450d2a7c78b86b7c647ac97bL360-R360)
[[2]](diffhunk://#diff-0c4471088c62917198e1438777b4c7e78fd4d87d450d2a7c78b86b7c647ac97bR384-R391)

**Client-side and types improvements:**
- Added `contentType` to the `presignableRequest` type to ensure type
safety and clarity when passing this parameter.
- Modified the S3 client (`S3.ts`) to include `contentType` when making
presign requests.
- Updated the example HTML (`rewrite-test.html`) to send `contentType`
in presign requests and enabled multipart uploads for testing.
[[1]](diffhunk://#diff-ca9bc28a71d2d8ac4e0aa6844698f2244594a12e695fc3e153db36674ccb2b52L103-R103)
[[2]](diffhunk://#diff-ca9bc28a71d2d8ac4e0aa6844698f2244594a12e695fc3e153db36674ccb2b52R114)
2026-06-17 13:54:47 +05:30
Prakash
af1ce527f5
implement minimal aws-s3 plugin (#6151)
Working :

- Simple uploads (putObject)
- Multipart uploads
- Pause / Resume / Abort , Resume works using listParts as before
- Progress tracking per chunk ( `#onProgress` ) - this is temporary ,
until we implement xhr based progress tracking as - before.

**added new examples to examples/aws-nodejs to test the rewrite , old
examples will eventually be removed**

Not Yet Implemented

- Rate limiting  – Currently uploads are sequential
- Retries
- Remote file uploads – Files from Google Drive, Dropbox, etc.
XHR progress
- full wiring with uppy state ( I saw few state bugs while testing it
manually )

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Murderlon <merlijn@soverin.net>
2026-06-17 13:54:47 +05:30
Merlijn Vos
78299475ae
Migrate from Eslint/Prettier/Stylelint to Biome (#5794) 2025-07-01 14:55:41 +02:00
Prakash
3d96004490
@uppy-example/aws-nodejs: fix fileType not present in S3 objects (#5680) 2025-03-31 09:33:56 +02:00
Antoine du Hamel
37ad27d5d1
Merge branch main 2024-07-02 16:15:36 +02:00
Nadeem Reinhardt
7c174e85b7
@uppy/companion: add s3.forcePathStyle option (#5066)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-07-02 16:13:35 +02:00
Antoine du Hamel
a42b150639
Merge stable branch 2024-06-18 17:22:02 +02:00
Mitchell Rhoads
a5bc28acda
updating aws-nodejs example listParts logic for resuming uploads (#5192)
Co-authored-by: Mitchell Rhoads <mrhoads@tunego.com>
Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2024-06-17 10:26:44 +02:00
Antoine du Hamel
087d8f07f0
@uppy/aws-s3: add endpoint option (#5173) 2024-06-13 14:55:12 +02:00
Antoine du Hamel
961f11f375
examples/aws: client-side signing (#4463) 2023-07-20 11:34:22 +02:00
Antoine du Hamel
435cb8ba71
examples/aws-nodejs: showcase an example without preflight requests (#4516) 2023-06-27 21:34:17 +02:00
Antoine du Hamel
44e5e0e2d7
examples/aws-nodejs: upgrade to AWS-SDK v3 (#4515) 2023-06-22 12:18:35 +02:00
Antoine du Hamel
0a7eceac21
meta: fix all ESLint warnings and turn them into errors (#4398) 2023-04-04 15:54:13 +02:00
Antoine du Hamel
f56520f1d8
example: add multipart support to aws-nodejs (#4257) 2023-01-05 12:04:51 +01:00
Raúl Ibáñez
3f07d79de6
Add example for Uppy with S3 and a Node.js server (#4129)
Co-authored-by: Merlijn Vos <merlijn@soverin.net>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2022-10-17 16:43:00 -03:00