Update API.php

@filename API for file uploading is deprecated