Cockpit cloudinary addon


#1

I really love cockpit, but I didn’t find any option to upload images via API. That’s why, I made one with cloudinary.

The process is like - upload image to Cloudinary and attach the image URL to Cockpit collection.
I know this is not a very good option to skip the whole cockpit assets manager but it does help me for my project.

Could one of you give a try and feedback me?, thanks in advance.


#2

Hey @ronaldaug, not sure by what you mean “any option to upload images via API”… because that is possible, e.g.:

image

You can upload one or more assets using the /api/cockpit/addAssets endpoint, ensure you are posting as multipart.


#3

uh… :sweat_smile: I didn’t know addAssets exits, Thanks for this.
I wish cockpit has more contributors for the documentation.


#4

Hi @pauloamgomes ,

(Let me just ask here again)

Let’s say I have a signup form and want new visitors to register,
How do I let them register via API? ( Probably, it won’t include token key )

I have checked on the documentation page, but it needs to provide at least a token key to create new user.

Thanks.


#5

That’s correct, you need it, but you can create an API token only for that endpoint, e.g.:

/api/cockpit/authUser*