PHP API for UploadFileToFolder