Fix some bugs/mistakes in UploadedFile.php

Signed-off-by: Chan Jun Wei <chanjunweimy@gmail.com>