I have to make a web call which will take a file from the user and post it to the server.
i am new to web so what should mt url be like.
i tried http//www.example.com?param[id]=1
so what should the next parameter be which will take uploaded file data.
i think he has to give me the binary data of the file
thanks in advance
You need to make a simple multi-part form using the
form_taghelper:You can’t submit files by a GET request. It must be POST, and it must be set multi-part.