TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
98
42.5k
Upload a file using WebApi
Feb 6 2020 11:52 AM
I have a file which is located at "D:\\NCDoc98.docx" and I want to pass that as parameter in a WebAPI
[HttpPost]
public async Task UploadFile(string file)
{
//code here to upload directly to my IIS folder
}
I saw tutorial using IFormFile which needs I GUI. all want is just to pass the path of the file and it will directly upload the file to the current folder of my asp.net core files..
Reply
Answers (
1
)
Multiple Models In Single View Using Entity Framework
GhostScript convert PDF to image