on-internet
← Community

ASP.NET Web API upload image to SQL Server database

Stack Overflow ·

I'm writing an article API with image and I've been following this tutorial about uploading file in ASP.NET web API, the Title and Content are saved to database as intended. The problem here is, the images that I post are saved to my local folder but the fields Filename, Filepath, Filelength, and Filecreatedtime aren't saved to database. Posting article to database with postman: The ImageFolder: GET index: The database: here's my Article model: namespace Wwf_Article.Models { using System; using System.Collections.Generic; public partial class Article { public int ID { get; set; } public string

Comments

Sign in or sign up to comment and upvote.

No comments yet.