attempts at uploading file via ajax in wordpress

There are issues with passing formdata through ajax and wordpress