Improvements in this wonderful plugin

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.
There was an error rendering this rich post.
2
Comments
@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.this is a good propose which I will implement soon !