Answer the question
In order to leave comments, you need to log in
Ajax. If a lot of files are being loaded, it gives an error 500 (Internal Server Error). Why?
Sending a POST request:
<script>
var form = document.querySelector('.form');
var request = new XMLHttpRequest();
form.addEventListener('submit', function(e){
e.preventDefault();
var formdata = new FormData(form);
request.open('post', 'http://website.loc/admin/addimgs{{$post->id}}');
request.send(formdata);
}, false);
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question