Top "Httppostedfilebase" questions

A class type in .NET used to assist with file uploads.

ASP.NET MVC 4 C# HttpPostedFileBase, How do I Store File

Model public partial class Assignment { public Assignment() { this.CourseAvailables = new HashSet<CourseAvailable>(); } public string AssignmentID { get; set; } public …

c# asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 httppostedfilebase
ASP MVC FIle Upload HttpPostedFileBase is Null

In my controller I have, because I wanted to be able to fill out some details about the video and …

c# asp.net-mvc razor upload httppostedfilebase
How do you convert a HttpPostedFileBase to an Image?

I am using ASP.NET MVC and I've an action that uploads the file. The file is being uploaded properly. …

image httppostedfilebase asp.net-mvc-file-upload
MVC 6 HttpPostedFileBase?

I am attempting to upload an image using MVC 6; however, I am not able to find the class HttpPostedFileBase. I …

asp.net-core-mvc httppostedfilebase
MVC3 How to check if HttpPostedFileBase is an image

I have a controller like this: public ActionResult Upload (int id, HttpPostedFileBase uploadFile) { .... } How can I make sure that uploadFile …

c# asp.net-mvc-3 file-upload httppostedfilebase
Getting the file path from HttpPostedFileBase

I'm working with ASP.NET MVC 4 and I'm trying to get the path of an uploaded file in order to …

c# asp.net-mvc file-upload filepath httppostedfilebase
Mocking HttpPostedFileBase and InputStream for unit-test

I want to test the following line of code: ... Bitmap uploadedPicture = Bitmap.FromStream(model.Picture.InputStream) as Bitmap; ... Picture is …

asp.net-mvc unit-testing moq httppostedfilebase
converting an image to png on upload

When a user uploads a jpg/gif/bmp image, I want this image to be converted to a png image …

c# httppostedfilebase
ASP.NET MVC posted file model binding when parameter is Model

Is there any way to get posted files (<input type="file" />) to take part in model binding in …

asp.net-mvc modelbinders defaultmodelbinder httppostedfilebase
File upload in MVC when used in bootstrap modal returns null

I'm trying to upload images to my application but it always returns null. I'm unable to find the issue here. …

asp.net-mvc twitter-bootstrap file-upload httppostedfilebase