@roivasxxx/payload-cloudinary-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

This is a fork of payload-cloudinary-plugin

The base plugin allows specifying a single cloudinary folder that will be used for uploads, this fork exposes a way of specifying a cloudinary folder on a per image basis

This fork also provides the option to disable the automatic addition of a timestamp to file names during uploads (original file names are only used when use_filename:true in the options parameter of mediaManagement is provided, the plugin adds a timestamp to this filename)

Specifying a folder

Add this field to your Payload upload collection:

{
  name: "folder",
  type: "text"
}

Fill the field out with your desired cloudinary folder

If no folder is provided(empty field), it falls back to the folder configured via the options parameter of mediaManagement, defaults to /media

Disabling automatic addition of timestamp to filenames

Using this option may introduce issues!

Add this field to your payload upload collection:

{
  name: "addFileNameDate",
  type: "checkbox"
}

Checking it will disable the addition of a timestamp to file names:

eg: image.png will remain image.png

Readme

Keywords

none

Package Sidebar

Install

npm i @roivasxxx/payload-cloudinary-plugin

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

24.4 kB

Total Files

13

Last publish

Collaborators

  • roivasxxx