Load photos into module

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
AdolphWolfe
New Member
New Member
Posts: 1
Joined: Wed Feb 12, 2025 10:29 am

Load photos into module

Post 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!
Martin Phelps geometry dash subzero
User avatar
brambaud
Forum Members
Forum Members
Posts: 10
Joined: Mon Apr 18, 2011 8:38 am

Re: Load photos into module

Post 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
French CMSMS websites maker
User avatar
chrisbt
Dev Team Member
Dev Team Member
Posts: 203
Joined: Sun Sep 05, 2010 6:11 am

Re: Load photos into module

Post 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
Post Reply

Return to “Developers Discussion”