Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[request] Image upload via comments form
Plugin idea/request if anyone would be able to devise something like this:
I’d like to be able to add an ‘image upload’ field to a comments form, and then have a txp tag in the comments display that will post that image in the comment along with the text. Of course the plugin would need to add a class to the image so that the display could be controlled by CSS. It should also be setup so that a maximum file size can be configured, and so that only certain file types will be allowed – jpgs and gifs, for example – so that you don’t get jokers trying to upload weird things into your comments.
Doesn’t matter whether the plugin keeps track of images in the database. Simpler not to, I suppose. But it should probably rename images somehow so that you don’t end up with duplicate filenames – maybe by title or date of the post, and appending a sequential number to the end of the file 0001, 0002, 0003, etc.
Any thoughts?
Thanks,
theturninggate
Offline
Re: [request] Image upload via comments form
I definitely this this would be a worthwhile plugin, and would easily generate a ransom for whoever could do it. Sadly that person is not me.
Offline