c# - Pass File as part of complex object to WEB API -


i using angular , kendo upload files. when submit web api controller. wish submit object eg.

[{  id : 1,  title : "test",  filelist : [file1, file2] }] 

when have try convert custom class on server side i.e.

public class myclass  {    public int id {get; set;}    public string title {get; set;}    public httpfilecollection filelist {get; set;} } 

all see empty filelist property. there way pass data in above way web api angular?

if no, can atleast pass list of files custom attributes on them id, title part of title , can treat multipartdata on web api.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -