IFormFile is always empty in Asp.Net Core WebAPI

前端 未结 3 529
再見小時候
再見小時候 2020-12-09 10:38

I have a problem here when I am trying to push data with angularjs controller. But what ever I do (IFormFile file) is always empty. There are only some examples with razor s

3条回答
  •  萌比男神i
    2020-12-09 11:19

    You can do it also with kendo upload much simpler:

    $("#files").kendoUpload({
            async: {
                saveUrl: dataService.upload,
                removeUrl: dataService.remove,
                autoUpload: false                                            
            },
            success: onSuccess,
            files: files
        });
    

提交回复
热议问题