add kerio format support
This commit is contained in:
@@ -177,3 +177,13 @@ export const importCSV = (id: number, file: File) => {
|
||||
fd.append('file', file)
|
||||
return api<{ imported: number }>(`/api/tasks/${id}/import`, { method: 'POST', body: fd })
|
||||
}
|
||||
|
||||
// A Kerio Connect export carries no domain, so the operator supplies it here;
|
||||
// the login and password apply to both sides of the migration.
|
||||
export const importKerioCSV = (id: number, file: File, domain: string) => {
|
||||
const fd = new FormData()
|
||||
fd.append('file', file)
|
||||
fd.append('format', 'kerio')
|
||||
fd.append('domain', domain)
|
||||
return api<{ imported: number }>(`/api/tasks/${id}/import`, { method: 'POST', body: fd })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user