title: How to know uploaded file size on symfony 3?
body: <p>i use FOSRestbundle to manage my api. I implemented a action to upload a file on symfony that it's working well. But the problem is that i need to obtain the file size... My action get the file on this way:</p>
  
  <pre><code>$uploadedfile = $request-&gt;files-&gt;get('file');
  </code></pre>
  
  <p>this obtains an array of all files that i upload.</p>
  
  <p>Reading the doc of symfony for the $uploadedfile object, there is a method called:</p>
  
  <pre><code>getClientSize()
  </code></pre>
  
  <p>so i used and always return 0:</p>
  
  <pre><code>$fileSize = $uploadedfile-&gt;getClientSize();
  </code></pre>
  
  <p>There are another way to get the file size? I'm doing something wrong?</p>
  
  <p>Thanks a lot.</p>