Click here to Skip to main content
15,886,069 members

Comments by Eliza Maria (Top 28 by date)

Eliza Maria 13-Aug-20 12:35pm View    
Thank you,that's what i wanted to know :D
Eliza Maria 13-Aug-20 12:25pm View    
Thank you for your response.I don't actually understand what you're saying by that as i have the image which is form-data and the user details which are json format.I can't transfer the image to the server as json as it is received by the server as IFormFile and uploaded in a folder.
Eliza Maria 30-Jul-20 10:47am View    
ok Sandeep,thanks for your help.I'll do that now.Best regards!
Eliza Maria 30-Jul-20 10:35am View    
ok,so after I researched a little bit I have managed to find something that returns a 200 ok status code.However I have 2 things i can't put my finger on:
1.Although it returns "OK",the file is not saved in the folder on the server side.
2.As I have changed the method to take another parameter named "fileName" I'm not sure how to use it in the VM so that will actually get the image name.

I have updated the question with the new code I have right now for UploadPictureAsync() and UploadImage().Thank you again for your help in figuring out how to resolve this :)
Eliza Maria 30-Jul-20 10:11am View    
Deleted
Thank you for your response Sandeep. It seems like it gets the image so it is not a null value but it returns an error "400 Bad request".