Questions tagged [httppostedfile]
51 questions
0
votes
1 answer
How can I convert a uploaded XML file that is in the form of a HttpPostedFIle to a string in C# asp.net?
How can I convert a uploaded XML file that is in the form of a HttpPostedFIle to a string in C# asp.net? I am trying to create the ability to upload an XML file and store it on a database server for a client that is using my web application. I need…

Jeffrey Padgett
- 218
- 1
- 14
0
votes
1 answer
How to write file handling operations in class library project
UI
MVC
/*below method is called from a MVC controller
this method resides for now in MVC project itself*/
public IEnumerable FetchJson(HttpPostedFile file)
{
…

Kgn-web
- 7,047
- 24
- 95
- 161
0
votes
1 answer
How to send HttpPostedFile to an action in some controller
If you want to send an object of type HttpPostedFile to an action, you may get null object in the action. So how to send it?

Mohsen Abasi
- 2,050
- 28
- 30
0
votes
0 answers
HttpPostedFile gets null
I have a FileUpload control and I am trying to upload an image to server with it but it fails. My view:
And my c#:
try
{
HttpPostedFile yuklenecekDosya = FileUploadImage.PostedFile;
if…

Batuhan Ozdal
- 81
- 10
0
votes
0 answers
The process cannot access the file '\image_o_6.jpg' because it is being used by another process
I have a scenario and I am stuck in it for 2 days .
When i upload an image HttpPostedFileBase it saves successfully after that when I update it, it gives me the error of access denied
my method is as follow:
public void…

Waleed Baig
- 422
- 1
- 6
- 16
0
votes
2 answers
receiving xml file via http post
I have a test script to receive an xml file via http post and it appears to work ok when I use it internally. When I move the script to a web server which can be accessed externally nothing appears to be happening. Anyone any ideas?

thegunner
- 6,883
- 30
- 94
- 143
0
votes
0 answers
LocalFile cast as httppostedfile
I have a dll to which I have no source code. This has a method that accepts httppostedfile as an input. I wanted to pass a local file stream to this method.
Is it possible somehow to convert the local file stream or bytes to httppostedfile format?…

pessi
- 681
- 1
- 10
- 26
0
votes
0 answers
How to get the Url of saved HttpPostedFileBase type file
I have saved the file using HttpPostedFileBase Type and now I am in a situation where I need to send an Email body which will contain Url of this saved file. So that user can directly click on this link and see what file has been uploaded.
Right now…

Cijo V J
- 261
- 1
- 3
- 14
0
votes
2 answers
How to use file in file system for HttpPostedFile
I have the following code for creating PDF Thumbnails, but this code only works for input files with HttpPostedFile. But my files are in the file system an I don't know how to handle them without HttpPostedFile. How can I create thumbnails of files…

raven_977
- 475
- 2
- 8
- 25
0
votes
1 answer
Unable to submit form in IE9
I have the following code which is doing a javscript post using an XmlHttpRequest:
var request = new XMLHttpRequest();
var postedFile = document.getElementById("file").files[0];
var formElement = document.getElementById("formID");
var form = new…

Jay
- 3,012
- 14
- 48
- 99
0
votes
1 answer
HttpPostedFileBase : Embedded statement cannot be a declaration or labeled statement
Using ASP .Net MVC 4 Razor.
On my view page, I have HTML
I am using following scripts: