Skip to content

Commit

Permalink
docs(upload): improve file count kb example and disable repl
Browse files Browse the repository at this point in the history
  • Loading branch information
dimodi committed Nov 23, 2023
1 parent efb6a33 commit f88e77f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion knowledge-base/upload-track-selected-uploaded-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ To count the total number of selected, valid and uploaded files in multiple user

>caption Track and count the number of all selected and uploaded files
<div class="skip-repl"></div>

````CSHTML
@inject NavigationManager NavigationManager
Expand All @@ -61,6 +63,7 @@ To count the total number of selected, valid and uploaded files in multiple user
Min="1"
Max="@MaxUploadedFiles"
Width="70px" /> allowed
(<strong>@string.Join(", ", UploadAllowedExtensions)</strong>)
</li>
<li>
Uploaded Files: @UploadedFiles out of
Expand All @@ -85,7 +88,7 @@ To count the total number of selected, valid and uploaded files in multiple user
AutoUpload="@UploadAutoUpload"
MaxFileSize="@( 16 * 1024 * 1024 )"
MinFileSize="@( 1 * 1024 )"
AllowedExtensions="@( new List<string>() { ".jpg", ".pdf", ".txt" } )"
AllowedExtensions="@UploadAllowedExtensions"
OnCancel="@OnUploadCancel"
OnClear="@OnUploadClear"
OnRemove="@OnUploadRemove"
Expand All @@ -99,6 +102,8 @@ To count the total number of selected, valid and uploaded files in multiple user
private string UploadRemoveUrl => ToAbsoluteUrl("api/upload/remove");
private List<string> UploadAllowedExtensions => new List<string>() { ".jpg", ".pdf", ".txt" };
private bool UploadMultiple { get; set; } = true;
private bool UploadAutoUpload { get; set; }
Expand Down

0 comments on commit f88e77f

Please sign in to comment.