Bind uploaded file to an IFormFile of a ViewModel

Good afternoon.

I use ASP.NET CORE 6.0 and Entity Framwork.

I have a Grid with some records. when I Add or Edit, I open a custom Modal to insert the new Record. Im using CRUD Operations in the controller.

I want to store that file in a server, but i will store in the database just the path of that file.

If I use a regular file input, the IFormFile always returns null. Is it possible to use your uploader that way?



Attachment: Files_94c4c554.zip

1 Reply

PS Pavithra Subramaniyam Syncfusion Team June 29, 2022 12:26 PM UTC

Hi Javier,


Thanks for contacting Syncfusion support.


Before providing a solution could you please share the below details that will be helpful for us to provide a better solution.


  1. Share the current payload of the Grid add/edit action
  2. Share the format of the file do you want to save to the database
  3. Share a video demo of your requirement?


Regards,

Pavithra S


Loader.
Up arrow icon