question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

the dynamic api in net core cannot receive an IFormFile object

See original GitHub issue

I had try to receive an IFormFile object in dynamic api ,but it not worked.

Task Import(Microsoft.AspNetCore.Http.IFormFile file) _tenantService.import(importTenantDto)

I am sorry that I read the inssue #3613 but I have a different problem .I can’t receive a IFormFIle objet in service, I always received a null value.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
malimingcommented, Dec 14, 2018

Automatically generated ajax cannot upload files. You need to handle it yourself. These are not within the scope of abp (belonging to NET CORE MVC)

0reactions
xyfycommented, Dec 14, 2018

I test it , using the auto generate abp service method. the service receive a null value

that’s why I come here to find help~

Read more comments on GitHub >

github_iconTop Results From Across the Web

IFormFile in .NET Core Web API is null for axios and ajax ...
But when I attempt to call it within my react app with either the AJAX jQuery generated by Postman or axios, the IFormFile...
Read more >
Upload Single And Multiple Files Using The .NET Core 6 ...
In this article, you willl learn how to upload single and multiple files using the .NET Core 6 Web API.
Read more >
Upload Single Or Multiple Files In ASP.NET Core Using ...
In this article, we are going to see how to upload files in asp.net core web application and store in root directory of...
Read more >
Upload files in ASP.NET Core
The individual files uploaded to the server can be accessed through Model Binding using IFormFile. The sample app demonstrates multiple buffered ...
Read more >
What's new in ASP.NET Core 7.0
Learn about the new features in ASP.NET Core 7.0.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found