0
Friends could help me create a function to record the path + image name in the database, and save the image on my server ?
I’m using the field model.PhotoName
which is a string
to store the path, but I don’t know how to upload to the server.
I want to send the image along with the Employee form.
could help me ?
You use a database? I believe it would be feasible to store them in the database as Base64, but just to know, I’ll put the method I use, to save
– Edenilson Bila
Possible duplicate of How to upload a file at the same time as sending an Asp.net mvc 5 form
– Leandro Angelo
I think my problem is different, I want to send my image along with the form, but I want to save it in a folder on my server, and save the path + name in the database
– Matheus
Edenilson Bila, I use bank yes.
– Matheus