I want to make a program that takes a number of photos from the user. And every photo will be uploaded to the server as soon as it is selected. How can I do this?
<script>
FilePond.registerPlugin(
FilePondPluginImagePreview
);
$('.fileUpload').filepond({
allowDrop: true,
allowBrowse: true,
allowMultiple: true,
allowReplace: true,
allowRevert: true,
allowRemove: true,
allowProcess: true,
maxFiles: 15,
maxParallelUploads: 1,
itemInsertLocation: 'before',
dropOnElement: true,
dropValidation: true,
instantUpload: true,
server: {
url: './',
timeout: 0,
process: {
url: 'api/UploadPictures/Upload',
method: 'POST',
},
revert: null,
restore: null,
load: null,
fetch: null,
}
});
</script>