Questions tagged [blazorinputfile]

23 questions
20
votes
3 answers

"Cannot read property '_blazorFilesById' of null error" with Blazor InputFile component

I've started getting this error from my Blazor WebAssembly app: "Cannot read property '_blazorFilesById' of null error" with Blazor app I'm assuming that's related to the InputFile component I'm using, which has been working fine. I've tried…
tomRedox
  • 28,092
  • 24
  • 117
  • 154
7
votes
1 answer

Can I replace the button displayed by Blazor's InputFile component with another element?

I am using the element to upload image files to my hosted Blazor WASM site. The component renders a button with the words "Choose Files" on it. I would like to replace this button with an image (or my own text, or anything else). I have tried…
Michael Kossin
  • 342
  • 3
  • 14
7
votes
3 answers

Blazor Input File Component (File Upload)

I am facing one small issue related to Blazor Input File component used for file upload. Source - https://github.com/SteveSandersonMS/BlazorInputFile Component Call -
ZKS
  • 817
  • 3
  • 16
  • 31
6
votes
3 answers

There is no file with ID 1. The file list may have changed Blazor

When I try to upload files from a list I get this error "Error: There is no file with ID 1. The file list may have changed" Its working when I attach one file but, when the list has more than one file, I get the error The phone Im using to send…
hawlk5
  • 61
  • 3
4
votes
0 answers

Image upload stuck with blazor server and BlazorInputFile

I have a problem while uploading images to an app with blazor server. I am currently using BlazorInputFile because I am using .Net Core 3.1 When I try to upload a series of images (100 images of about 500 kb size) after a while the upload is…
Lorenzo Belfanti
  • 1,205
  • 3
  • 25
  • 51
4
votes
1 answer

How to get full directory path of BlazorInputFile in blazor web assembly

Team, I have a blazor web assembly app, which upload the file and process it later. However , I would like to know the base path of the file from where it it picked in the machine. My code goes as follows . Does anyone has idea to get the file path…
2
votes
2 answers

InputFile component problem with image upload

What's wrong with InputFile in Blazor? (Edit: "what's wrong with my implementation of InputFile, as someone pointed out in the comment") this was the actual image I'm trying to upload, and this is the resulting display, after uploading; the image…
Marlon Dumal-is
  • 300
  • 2
  • 13
2
votes
1 answer

Unhandled exception rendering component: Could not find 'BlazorInputFile' in 'window'

I created a default Blazor WebAssembly application in order to test the BlazorInputFile component. Whenever I start the application, if I go to the simple page I created with just the option to upload a file, I get the following error message…
2
votes
3 answers

Blazor UI hanging during memory file upload

I'm working on a simple blazor application that receives a file upload and stores it. I am using BlazorInputFile and I can't work out why copying the stream to MemoryStream is causing the browser to freeze. The details of how to use (and how it's…
Paul
  • 9,409
  • 13
  • 64
  • 113
1
vote
1 answer

Getting diacritic character as symbols in InputFile component

While read the zip package files name (For Ex: TestDocumentááá), which has diacritic character, It returns symbol character like below. Actual Result: TestDocument���.docx Expected Result: TestDocumentááá.docx Actual Result private async void…
1
vote
2 answers

File Upload keeps showing 'No File Chosen'

I have a simple file upload which uses the BlazorInputFile. I can add a file and it hits the onChange function I have specified however the name of the file never appears on the screen and when I go to submit the form, it says that it's empty. The…
JamesS
  • 2,167
  • 1
  • 11
  • 29
0
votes
1 answer

Blazor InputFile component does not work when registering AutofacServiceProviderFactory

we can't able to upload the file in InputFile component when registering custom dependencies injection AutofacServiceProviderFactory. find the below code on Program.cs file. builder.Host.UseServiceProviderFactory(new…
0
votes
0 answers

Blazor Server: Creating email attachments from files uploaded via InputFile

I am trying to send emails with attachments attached to the email. I have a InputFile with a progress bar that I am able to upload files. I have attempted to use the memory stream to make attachments to the MailMessage class. The issue is that when…
0
votes
1 answer

Blazor InputFile has way too large drop area

I am building a small file upload component using InputFile (C#, Blazor). I have been following various examples on the internet and built everything as outlined there, but the InputFile element in my application is far too big. Here's a screenshot…
Razzupaltuff
  • 2,250
  • 2
  • 21
  • 37
0
votes
0 answers

Blazor Server: Attempting to take files from InputFile into an Email attachment

I am currently trying to get the files received from InputFile and attach it as an email attachment. I followed this website to get my InputFile with the progress bar: https://www.meziantou.net/file-upload-with-progress-bar-in-blazor.htm. I have…
1
2