I wrote this to upload an image to my local Apache webserver using input element in HTML. The file is logged as not empty, but why is the for
input
file
for
I've noticed myself that the contentType: false will only work on jQuery 1.7.0 and above. So make sure that you're using the right jQuery version.
contentType: false