Skip to content

Add uploadPreset support for Cloudinary upload presets#1

Open
ryanwoodcox wants to merge 1 commit intoimaxisXD:mainfrom
ryanwoodcox:main
Open

Add uploadPreset support for Cloudinary upload presets#1
ryanwoodcox wants to merge 1 commit intoimaxisXD:mainfrom
ryanwoodcox:main

Conversation

@ryanwoodcox
Copy link

Add the uploadPreset parameter across all upload flows to enable Cloudinary upload presets with signed uploads. Upload presets allow pre-configured settings (folder, transformations, moderation, etc.) to be enforced server-side.

Changes:

  • Add uploadPreset to CloudinaryUploadOptions interface
  • Include upload_preset in signature generation for signed uploads
  • Add uploadPreset to upload and generateUploadCredentials actions
  • Update client UploadOptions and DirectUploadOptions interfaces
  • Add uploadPreset to makeCloudinaryAPI validators and return types
  • Update CloudinaryAPI type in React hooks
  • Add tests for uploadPreset parameter acceptance
  • Document upload options including uploadPreset in README

Add the uploadPreset parameter across all upload flows to enable
Cloudinary upload presets with signed uploads. Upload presets allow
pre-configured settings (folder, transformations, moderation, etc.)
to be enforced server-side.

Changes:
- Add uploadPreset to CloudinaryUploadOptions interface
- Include upload_preset in signature generation for signed uploads
- Add uploadPreset to upload and generateUploadCredentials actions
- Update client UploadOptions and DirectUploadOptions interfaces
- Add uploadPreset to makeCloudinaryAPI validators and return types
- Update CloudinaryAPI type in React hooks
- Add tests for uploadPreset parameter acceptance
- Document upload options including uploadPreset in README
@ryanwoodcox
Copy link
Author

@imaxisXD , could you please have a look?

@ryanwoodcox
Copy link
Author

@imaxisXD , could you please have a look?

Any thoughts?

@imaxisXD
Copy link
Owner

imaxisXD commented Feb 5, 2026

I am still not sure whether we need this.

@imaxisXD
Copy link
Owner

imaxisXD commented Feb 5, 2026

This should be done by the user in there db

@ryanwoodcox
Copy link
Author

ryanwoodcox commented Feb 5, 2026

This should be done by the user in there db

Could you be more specific on how one can specify a Cloudinary upload preset when uploading images using this package?
Upload Presets

Also, this proposed addition has minimal impact on the package. Is there a concern about this change adding risks?

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.

2 participants