0
dev03 created
- ABP Framework version: v4.0.2
- UI type: Angular
- DB provider: MongoDB
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:
I tried to upload a file using IFormFile, but an error occurred when generating the proxy, See this:

Did I miss something? The API like this:

Found an issue on github: https://github.com/abpframework/abp/issues/6384
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
12 Answer(s)
-
0
hi coeusli
You should use
IRemoteStreamContentin app service. Then follow https://github.com/abpframework/abp/issues/6384#issuecomment-739245736Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
You need to pass the file in the request body before v4.3.
example:
var settings = { "url": "https://localhost:44362/api/upload-file", "method": "POST", "headers": { "Content-Type": "image/png" }, "data": "<file contents here>" }; $.ajax(settings).done(function (response) { console.log(response); });You can use
FormDataafter v4.3. https://github.com/abpframework/abp/pull/8302Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
This question has been automatically marked as stale because it has not had recent activity.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)









