some one knows how to send a file in an ajax request? my current problem is that i have the URL of the file in a
<input type="file" />
but i don't know how to "load" the file in a variable or js object to can send it to my server
Can someone who has done this help me ? if there is any way to do it with AngularJS it would be great
<input type="file">is not for URLs. If you have an URL, use<input type="url">(HTML5) or plain<input type="text">. Send the URL unchanged to the server, and let the server download it. If you in fact have a file (and not a file URL) in a<input type="file">element, you'll useFormDatato get the file contents into the AJAX request; you will also have to handle them at serverside, which is very language-dependent.