replaceFileDump(dumpId: string,file: File,comment: string | undefined,title?: string,categoryIds?: string[],isPrivate?: boolean,slug?: string,exempt?: boolean): Promise<Dump>
Replaces a file dump's upload and its comment, for
PUT /api/dumps/:dumpId/file. A title, slug, categoryIds or
isPrivate left out stays as it is. Visibility is taken here so that a new
file and a change of visibility land together. The slug changes as in
updateDump, before the file is written. The old file is put back if
the database update fails, and clients and followers are told as
updateDump tells them.
file: File
Promise<Dump>