我想将所选图像保存在服务器图像文件夹
喜欢http://url/public_html/images/
HTML代码:
<input type="file" id="files" name="files[]" multiple />
<button type="button" id="btnInsertAuto" class="btn btn-primary">Submit</button>
的Javascript
$('#btnInsertAuto').on('click', function () {
var Name = $('#Name1').val();
var Note = $('#Note2').val();
var image=$('#files').val();;
document.getElementById("Name1").value = "";
document.getElementById("Note2").value = "";
document.getElementById("files").files[0].name
insertAutoKey(Name, Note, image);
});