Gerrity
Tera Expert

Could this be modified to restrict the file attachment size to less than 100kb and only to png or jpg?

I'd like this on a client side script so that before user clicks submit it would check the file attachment for both size and extension.

 

The attachment variable of max_file_size seems to be restricted to mbs so the lowest is 1mb.

 

Thank you