Questions tagged [httppostedfilebase]

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

HttpPostedFileBase is a .NET class designed to make file uploads in ASP.NET projects easier.

MSDN Documentation

188 questions
-1
votes
1 answer

Multiple file upload fails but passing single file is working

I am trying to pass multiple pdf files to the controller method. This is my code in javascript: var formData = new FormData(); formData.append("data", JSON.stringify(data)); formData.append("httpPostedFileBase", file1,…
-1
votes
1 answer

How to access single element of httppostedfilebase array?

I am working on ASP.NET MVC web app.I want to upload multiple files on single input control. In my view: My model: public HttpPostedFileBase[] files { get; set; } Now, in my controller, I am…
Jass
  • 341
  • 3
  • 12
-1
votes
1 answer

how to upload multiple files using a single upload control in a MVC application

Am having a MVC application wherein user uses the fileupload control and upload the file which is having 30 MB or more into the sql db. am pretty new to MVC arch., so, am sorry,i may ask stupid questions! Now, customer says that,end users are…
dasarp
  • 123
  • 1
  • 9
-1
votes
1 answer

asp.net mvc with angular with multiple parameter ajax call HttpPostedFileBase file getting null value

Here i send an object and a file from my angular service: $scope.addProject = function () { { var project = {}; project["Id"] = $scope.Id; project["ProjectCode"] = $scope.ProjectCode; var…
Mohaimin Moin
  • 821
  • 11
  • 22
-1
votes
1 answer

Pass Data from view to controller with file name form file input tag in mvc

I have one mvc application , in that i created one form that user will be able to fill it online. in that form i used multiple text boxes and input file tag for user's photo . i also created model , first see this Sampleform.cshtml view @model…
Rahul Chaudhari
  • 148
  • 1
  • 17
-1
votes
2 answers

How to post file from c# code in asp net mvc?

I have a controller method, which takes HttpPostedFileBase picture as an argument. Of course, it is used for loading images from a form. But now I want to load the file from another method, using that method. Can I make HttpPostedFileBase file in…
lenden
  • 800
  • 2
  • 14
  • 38
-2
votes
2 answers

working with multiple and single file upload

I'm using uploadify fileupload plugin for my MVC3 project. I'm trying to use the uploading file to the controller. How do i use multi file upload and single file upload together ? I know to use IEnumerable files for multiple…
-4
votes
2 answers

como puedo usalor HttpPostedFileBase en asp.net core?

HttpPostedFileBase I want to solve this problem to store the image to the database. I still don't run the project, if I have errors or an easier way to do it public IActionResult Create(Productos prod [Bind("codigoFoto"] Productos productos,…
1 2 3
12
13