Function to upload a file via AJAX. This function checks if there is a file and if the response is positive proceeds with constructing an AJAX call that will finally save the file on the server and give us back the ID of the file from DB.
Function to upload a file via AJAX.
This function checks if there is a file and if the response is positive proceeds with
constructing an AJAX call that will finally save the file on the server and give us
back the ID of the file from DB.

MattBlack85/dunning-cruncher