i am getting error in php while uploading image to databse using jquery, the data in variables arent passing maybe

前端 未结 3 2052
余生分开走
余生分开走 2021-01-20 12:29

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

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-20 12:41

    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

提交回复
热议问题