[rest] Adds classes for file upload.