0
I need a javascript script to compare the selected file sizes on input with the disk_free_space (in my case disk_free_space('D:')") of PHP, but it has to be before sending to the page that uploads, and detecting that it is larger than available, that blocks the button and shows a message, because I’m using the AJAX to send, I am using sending multiple files and I have available the JQuery.
<form id="formFiles" name="formFiles" action="javascript:void(0);" enctype="multipart/form-data">
<input type="file" required name="arquivo[]" multiple="multiple">
<button id="" type="submit">Enviar</button>
</form>