Page 1 of 1

Load photos into module

Posted: Wed Feb 12, 2025 10:31 am
by AdolphWolfe
Hello,
I am a new member.

I want the admin user to be able to add photos and data to my module's back end. I'm wondering if I need to write all of the code for uploading, sanitizing, converting, and resizing myself, or if the fileManager module handles it effectively enough.

Thank you for your help!

Re: Load photos into module

Posted: Thu Feb 13, 2025 6:50 am
by brambaud
Hi,

I'm not sure I fully understand your needs but you should take a look at the excellent ECB2 module (https://dev.cmsmadesimple.org/projects/ecb2) and its image-related features ;-)

+++
Benoit

Re: Load photos into module

Posted: Thu Feb 13, 2025 9:42 am
by chrisbt
Hi Martin,

FileManager will do some of that but as far as I know not the resizing or converting. It will do some of the sanitizing but you might need to add a few checks yourself.

The ECB2 module uses Dropzone to handle image imports and it does work really well. It's fairly easy to implement.

There is a plan to enable modules to share file input types, but it's not developed yet. Hopefully for the next major release.

Chris