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.4k
Disable chunking in Asp.Net Core 3.1
Feb 14 2020 11:12 AM
When I'm uploading a file when I published my Api to localhost, I keep on encountering this error
transfer-encoding: chunked
x-powered-by: ASP.NET
while using this code to upload file..
var fileName = Path.Combine(Directory.GetCurrentDirectory(),
"wwwroot"
,
"newFileName.docx"
);
if
(System.IO.File.Exists(fileName)) { System.IO.File.Delete(fileName); }
// Create new local file and copy contents of uploaded file
using
(var localFile = System.IO.File.OpenWrite(fileName))
using
(var uploadedFile = formFile.OpenReadStream()){
uploadedFile.CopyTo(localFile);
}
How can I fix this?
Reply
Answers (
0
)
DataTableId Invalid Json
Cannot convert list to Ienumerable in mvc