title: PHP - prevent uploading file more than 100 KB in during uploadin file not after upload entire file
body: <p>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.</p>
  
  <p>I want prevent uploading file more than 100 KB on server from users(in registering new user in image profile field) and <strong>during uploading</strong>(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(<strong>Preferred</strong>) OR any other script language <strong>for server-side code</strong>.</p>
  
  <p>I searched by stackoverflow and google I didn't find any help or source about that.</p>
  
  <p>Please help me</p>