Skip to main content
Component Name: ManageDocuments.razor
Version: 1.0.0
Manage Documents Screenshot

Dependencies

Services:
AdminSettingsService, UserService, SermonCollectionService, GroupService, DocumentStorageService, Snackbar

Variables

Lifecycle Methods

Runtime Methods

ClearAsync()

Clears the selected files from the upload box.

OpenFilePickerAsync()

Opens the local computer’s file picker.

OnInputFileChanged(InputFileChangeEventArgs)

Sets _fileNames and _filesToUpload when selected files change.

Upload()

Opens a read stream for each file in _filesToUpload and calls DocumentStorageService.UploadBlobAsync to upload them to Azure Storage in the container associated with _uploadCollection.

SetDragClass()

Sets _dragClass to include a border.

ClearDragClass()

Sets _dragClass to default.