add upload file method