An API for uploading files to d-h.st using PHP