Upload package file through API endpoint.