Upload path fix.
Code refactoring for upload process.
Function to get file size. Replace of file_get_contents().