Pre-approves the uploaded file. If this method returns false, the file upload will not continue and the Redakt.ContentManagement.Files.IFileUploadHandler.HandleFileUploadedAsync member will not be called.

public abstract ValueTask<bool> FileUploadPreapprovalAsync(string fileName, long fileSize, string mediaType, string urlName, string errorMessage)
Returns:
ValueTask<bool>

Parameters

fileName string
fileSize long
mediaType string
urlName string
errorMessage string
In this article