7 years ago
1
Topic

Hello, visitors registered on my site can publish articles in frontend.

They also have the option to upload an image (field upload image). Image upload is not required.

I realized that the article was saved even if the image size exceeded the expected limit but without the desired image. I would like the article not to be saved when the size of the image exceeds the limit set in the upload image parameters with an explanation message.

Could you help me please?
Translated with Google Translate.

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

That could be achieved using beforeStore code plugin to prevent saving if size is too big, but you would need to write code yourself.

Get a Book for SEBLOD