I have an page with php code to upload user's picture for every account.Size of their image file must less than 100 kb size.
I want prevent uploading file more than 100 KB on server from users(in registering new user in image profile field) and during uploading(Not after uploading the entire file and just during uploading it), if the upload volume exceeds 100 KB, stop uploading progress and display warning for user by PHP(Preferred) OR any other script language for server-side code.
I searched by stackoverflow and google I didn't find any help or source about that.
Please help me