Ajax File Upload With Form Data Laravel 5.3

后端 未结 5 1756
迷失自我
迷失自我 2020-12-28 21:48

i want to upload a profile image of a user to the server and i\'m stuck at ajax upload of image

all my form data are posting to datab

5条回答
  •  自闭症患者
    2020-12-28 22:20

    Just me or does your not have a "name" attribute? Therefore the server is not receive the file data from the post?

    EDIT:

    After you insert the record into the database, you then handle the file uploading - but you never then update the record with the files name.

    *Just confirm that the file was uploaded.

提交回复
热议问题