0.0.2 • Published 1 year ago

@roivasxxx/payload-cloudinary-plugin v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

0.0.2

1 year ago

0.0.1

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago