finish upload file api Issue #3