My code is a form where it picks a file from the user, then send the data using jQuery to a PHP file where it gets the image content and displays it and in a success functio
First of all insert your input file tag in a form and use enctype="multipart/formdata" to send an image otherwise you will not able to send image