Tag: multifile uploader

以angular度上传多个文件

我有一个情况,我有一个表格,其中我有两个文本字段条目,我必须上传该行的文件,这种行可以是“N”,然后在那里是一个可以input整个表单的主文件,而这些是表单的一部分,我必须在点击保存button时一次提交所有这些文件。 我有一种坚持ng – 上传它需要一个API调用,我真的不能有一个以上的API调用这种forms。 示例的html代码如下: <!DOCTYPE html> <html> <head> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <form editable-form name="xyzForm" ng-submit="create(model)"> <label>Tags: </label><input class="col-xs-12 col-md-12" ng-model="model.tags" type="text" name="Tags"> <label>Notes: </label> <input class="col-xs-12 col-md-11" ng-model="model.notes" type="text" name="notes"> <table class=" col-xs-3 col-md-11 table" border="1px solid red;"> <thead> <tr> <th>Product</th> <th>Manufacturer</th> <th>Location</th> <th>Specification</th> <th></th> […]