Hi guys,
I wanted to have suggestions about the best way to make an image upload system.
I’m on MODx Revolution 2.0.6-pl.
The system would require the user to login (name, password) before being able to upload files.
First, I’m not sure whether I should let them access the manager for this or not.
I guess it’s either:
- Make users Manager users
- Being able to reuse the login form + file upload system of the manager
- Only let them upload files, nothing else (maybe using a plugin like ManagerManager to remove stuff)
or:
- Make users Web users
- Create a page with a form to let them log in (maybe using a form snippet, like FormIt or SPForm? Or is it even worth it just for 2 fields?)
- Redirect them to a new page that lets them upload files (couldn’t find a file upload plugin that works with Revolution)
PS: it doesn’t matter much if they can upload files other than images, I trust the users, and there will be very few of them.
Any advices?
Thanks!
-
☆ A M B ☆
- 3,141 Posts
I’d go with #2, unless the users already use the manager. Might aswell make a CMP for it then.
FormIt could come in handy for some validation but I think it may be easier to just custom code your processor (snippet?).
-
☆ A M B ☆
- 3,141 Posts
They might accidentally upload a virus, without ever knowing that did.
And come to you telling you that the site broke cause of what you’ve done.
-
☆ A M B ☆
- 318 Posts
For the record, I set up an image upload system by going the other way (1), and it works well for me. I wanted my users to be able to use the manager anyway, I just severely limited what they are able to see and do, which is pretty easy if you play around with their user group settings. They just use the normal file upload system to upload images.
I set up a plugin to resize the images using PHPthumb, basically a variation of PHPthumbOf, but done as a plugin. There were a couple of tricky bits but it went pretty smoothly once I figured out what I was doing.
Just wanted to point out that either approach can work, depending on your needs.