Need help with a function that will limit upload for non admins:
- Check before upload if file is jpg, jpeg.
- Check before upload if picture is not bigger than 700kb.
- Limit uploaded files to 7 per normal user wordpressWordPress account.
I was searching for plugin or function that will be able to do this but no luck :(
Is it even possible to check the file before upload in wordpress?