My php.ini settings are fine (post_max_size superior (50M) to max file upload size and memory limit superior to both of them)
Found nothing but this :
https://github.com/laravel/framework/issues/5221
When not using the move() function getSize() or putting it after the getSize() call works fine.
Any idea ?
Using Laravel v5.2.43
When you move the file the File is not in the previous path anymore so the getSize method access the old path call the size method before the move or store the size in a variable.
I agree with @arasmit2453.
The error makes sense because you already moved the file as @arasmit2453 said. Closing the issue then :)
Most helpful comment
When you move the file the File is not in the previous path anymore so the getSize method access the old path call the size method before the move or store the size in a variable.