Monday, 22 May 2017

Submit form fileupload inside form

I have form like this

<form>
 Email : <input ng-model="email/>
 To: <input ng-model="to/>
<input type="file" name="files[]" multiple=""> 
</form>

i want send file with email to server . I'm using formidable in serverside but it required form action="fileupload" .I'm try use ng-form but in the docs say

Note: the purpose of ngForm is to group controls, but not to be a replacement for the tag with all of its capabilities (e.g. posting to the server, ...).

How can I do it . Please help me



via Nguyễn Bảo Dũng

No comments:

Post a Comment