Fixed upload method and file property

File uploads on tmp dir