I am developing a api using codeigniter for user signup and user update profile. I have image field in form. To create user i have used post method which works fine. But issue i am getting when i am updating user. I know that with put request we have to send urlencoded or json data. But what should i do to update image?
Should i make 2 request? One with normal url encoded data (PUT request) and one with post request (Update image).
In rest api development which is the significant way to deal with these type of request? can anyone help me?