I want to facilitate users to upload profile picture from front end on my WordPress blog. I found a plugin "ad local avatar" which can help me for the same (I hadn't tried it until now).
But I fear what might happen if a user uploads a very big size file, or a virus infected file. How can I do following in WordPress (or PHP):
- File size check before saving it to server. (Checking file size while it is being uploaded)
- Scan file contents