Welcome to the Xceed Community | Help
Community Search  
More Search Options

Upload Path

Sort Posts: Previous Next
  •  08-03-2010, 10:38 AM Post no. 27869

    Upload Path

    I would like to change the upload path. Where do i find this in the Uploader Tour Sample code?

    Thank's a lot from Brazil.

  •  08-03-2010, 1:48 PM Post no. 27875 in reply to 27869

    Re: Upload Path

    I've changed the code in Server Uploads.aspx.vb file:

    'Set the path on the server where we want files to be saved

    'Dim path As String = Request.PhysicalApplicationPath & "Temp\"

    Dim path As String = "c:\Support\Upload\"

     is it allright?

     

    Next step, i would like to show the name of the uploaded file.

     

    I'm trying this:

    Public Shared Sub InspectResponse(ByVal response As HttpWebResponse, ByVal onCompleted As InspectResponseCallback)

    'Everything worked fine

    If response.StatusCode = HttpStatusCode.OK Then

    If (Not Common.Multiple) Then

    Common.Page.eventLogList.Items.Add(File.Filename & "uploaded with sucess")

    but, it's not working because file.Filename is not a String member.

    Can you help me?

  •  08-04-2010, 12:02 PM Post no. 27882 in reply to 27875

    Re: Upload Path

    Dim path As String = "c:\Support\Upload\"

    is it allright?

    Yes, it's ok. But make sure IIS/ASP.NET has the rights to write to that location.

    Next step, i would like to show the name of the uploaded file.

    but, it's not working because file.Filename is not a String member.

    The file name isn't part of the HTTP response. So you don't have that information at that point in the code.

    The application would need to be redesigned to store the selected file name in a member variable or a global variable so it can be displayed when needed. You would be better off writing your own application and using bits of code from the samples.

    These samples weren't really made to be turned into flexible applications, just to show the Upload component's API in action.

  •  10-05-2010, 7:44 PM Post no. 28917 in reply to 27869

    Re: Upload Path

    Alexandre:

    I would like to change the upload path. Where do i find this in the Uploader Tour Sample code?

    Thank's a lot from Brazil.

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.