File tree Expand file tree Collapse file tree
src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,15 +121,15 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
121121 /// </summary>
122122 /// <param name="uploadFile"></param>
123123 [ JSInvokable ]
124- public async Task < string > Upload ( CherryMarkdownUploadFile uploadFile , CancellationToken token = default )
124+ public async Task < string > Upload ( CherryMarkdownUploadFile uploadFile )
125125 {
126126 var ret = "" ;
127127 if ( Module != null )
128128 {
129129 var stream = await InvokeAsync < IJSStreamReference > ( "fetch" , Id ) ;
130130 if ( stream != null )
131131 {
132- using var data = await stream . OpenReadStreamAsync ( stream . Length , token ) ;
132+ using var data = await stream . OpenReadStreamAsync ( stream . Length ) ;
133133 uploadFile . UploadStream = data ;
134134 if ( OnFileUpload != null )
135135 {
You can’t perform that action at this time.
0 commit comments