Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Improvements in this wonderful plugin

This discussion is related to the ImageUpload addon.
aeryaery Gtricks Forum in 2.2 :) ✭✭✭
edited August 2013 in Vanilla 2.0 - 2.8

First of all, thanks for making this really useful plugin which fills the void.

Now, I have a modified php script which is an improvement over this. Please find it attached. I am taking about -

$. Defining maximum size for image files

$. Only allowing .jpg, .jpeg, .gif or .png files

$. Replacing blanks in file name with - dashes

$. Proving title and alt text for image from its name.

I am also looking forward to -

$. Organizing images according to month-year folder.

$. Outputting html code.

hgtonightUnderDog

Comments

  • chuck911chuck911
    edited August 2013

    @aery thanks for your precious suggestion and code !

    For simplicity and security, this plugin uses original code in vanillaforums to upload images, the Gdn_UploadImage class has done many common jobs including filter file extension, file naming and size limit.

    Proving title and alt text for image from its name.

    this is a good propose which I will implement soon !

    UnderDoghgtonightShadowdare
Sign In or Register to comment.