knadh / listmonk

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
https://listmonk.app
GNU Affero General Public License v3.0
15.27k stars 1.39k forks source link

Cloudinary API Support for Media Uploads #932

Closed candideu closed 2 years ago

candideu commented 2 years ago

Is your feature request related to a problem? Please describe. I've been having a lot of trouble getting S3 compatible apps like Backblaze to work for image uploads, and have no desire to use Amazon's option. See: https://github.com/knadh/listmonk/issues/617

Describe the solution you'd like I'd love to see an option to make use of Cloudinary's Upload API: https://cloudinary.com/documentation/image_upload_api_reference. Another app which makes use of this is Ghost: https://ghost.org/integrations/cloudinary/

knadh commented 2 years ago

@rhnvrm this commit (https://github.com/knadh/listmonk/pull/640) should've added Backblaze b2 support, right?

candideu commented 2 years ago

I've just tried it again today, and no luck:

image

Any time I try the s3 file upload, there's some kind of error. For reference, when I've tested this in the past, I was able to use the same credentials on nocodb's Backblaze integration, and it worked.

I usually upload my media to Cloudinary and copy the link, but it would be nice to be able to directly upload to Cloudinary from Listmonk.

rhnvrm commented 2 years ago

@candideu Yes, b2 should ideally work after #640

Can you share the version of listmonk you are running?

candideu commented 2 years ago

@rhnvrm v 2.2.0, hosted on Railway.app

rhnvrm commented 2 years ago

Hi

I tested backblaze keys with the listmonk UI locally and it seems to have worked and successfully uploaded the file.

Here are a sample settings.

image

And the upload page.

image

candideu commented 2 years ago

Thanks for sharing these screenshots @rhnvrm! I finally got it to work today. Thanks to your screenshot, I realized that I was missing the "-002" in the region, the bucket name. Setting my Bucket type to "Public" (both on Backblaze and Listmonk) also helped with accessing the files.

That said, having the option to also use Cloudinary with Listmonk would also be great!