What are the options for handling file uploads to reduce the memory footprint? Is there a way to upload in chunks? Is there a way to stream upload directly to disk instead of loading entire file in server memory?
View Complete Post
I am working on xml for almost three month but still i can't solve the update problem of element in xml file directly on the disk without loading the whole xml document. Rather i want to load only the particular element of xml and change it and update xml file on disk.
<name>name of waypoint</name>
What i am trying is to update the value of name element of second waypoint without loading the whole gpx in object, rather to update the value directly oto the disk, and also the description doesn't show if there is null or empty.
iam using masterpage and ajax update panel, i have child page called fileupload.aspx,i try to upload the file
but its not working , can i use updatepanel in child page , pls very urgent
looking forward for answer.
I have the following subroutine in an asp.net application class. The subroutine writes data to a text file upon application login. My question is that if this function was called at the same time by two different users would it cause any kind of error. Is there a need for a try catch?
Public Shared Sub writeToLogFile(ByVal UserName As String) Dim strLogMessage As String = String.Empty Dim strLogFile As String = System.Web.HttpContext.Current.Server.MapPath("~/Log.txt") Dim swLog As StreamWriter strLogMessage = DateTime.Now.ToShortDateString().ToString() " ==> " & UserName
If Not File.Exists(strLogFile) Then swLog = New StreamWriter(strLogFile) Else swLog = File.AppendText(strLogFile) End If
In my Create User Wizard1 Created User Wizard Event, I am collecting extra information from text boxes and allowing
the user to uplad a file.
I have put the Submit button within an Update Panel Tag but since I have done this it does not work.
Is there a way round it. In this situation would you use a trigger.?
<CustomNavigationTemplate> <div><br />
<asp:UpdatePanel ID="UpdatePanel2" runat="server"> <ContentTemplate>
<asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" align="middle" Text="Submit my Profile" />
I have the problem below, if anyone can help me, appreciate it.
Server Error in '/' Application.
Hi to all ,
this is srinivas,
i have been trying for uploading a file . it works fine in INTERNET EXPLORER not in FIREFOX.
firefox browser fileupload control takes only file name ,not entire path. so ERROR is file not found error thrown at run time.
(i dont want answers which suggests me to do SAVEAS file in local disk then upload.)
please post another answers.
hope u all understand my question .
thanks in advance.
Hoping that someone can help me with this. I've been tearing my hair out for days looking for sources and coming up with nothing.
Basically, the scenario is this: I'm working on a project whereby an iPhone will make an HTTP-POST call to an .ashx file on my site. The POST will consist of some fields and a file.
I'm having difficulty - read that as no luck what-so-ever - in finding the form fields or the file when I look at the HTTPContext object in the debug mode of Visual Studio. And if I look at HTTPContext.Request.Files.Count (where I would expect to find a file count) the value is always zero!!
Please help, very confused by this!
I am using WebClient.UploadFile method to upload a file to a web page.
The code is like this:
WebClient client = new WebClient(); byte responseBinary = client.UploadFile(url, fileName); string response = Encoding.UTF8.GetString(responseBinary);
But I can not upload it to server.
I used fiddler to see what happens, and it shows me the following information:
http status code: 302, request headers: POST /testing/upload/default.aspx HTTP/1.1
http status code: 302, request headers: GET /testing/upload/default.aspx?AspxAutoDetectCookieSupport=1 HTTP/1.1
http status code: 200, request headers: GET /(X(1)S(22pynhvxd3eqsb455pudx145))/testing/upload/default.aspx?AspxAutoDetectCookieSupport=1 HTTP/1.1
I would like to know, why I get 302 code, and why it redirect me to the strange url with (X(1)S(22pynhvxd3eqsb455pudx145)) ?
By the way, the web page is ok to upload file by using web explorer.