Multiple File Uploads

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sundar

    #1

    Multiple File Uploads

    Hi,

    I am working on ASP.Net. My requirement is that I want
    to Upload Multiple Files to the Server. I need to have
    ONLY ONE FILE UPLOAD CONTROL in my page. I SHOULD NOT
    SUBMIT THE PAGE FOR EACH AND EVERY DOCUMENT browsed.

    I am having a File Upload HTML Control and an Add Button
    on my page. The user will browse for the document to be
    uploaded and then click on that Add button. I then add the
    path of the file to a javascript variable through
    javascript. After adding all the documents, the user will
    click on Save Button. I then need to upload all the files
    by accessing my javascript variable.

    I used webclient class. I am able to upload all the files
    through a single post. But some extra information like
    Headers (HTTP CONTENT) gets added to the file. How to
    eliminate that?

    I tried to build as many File Upload Controls as my
    javascript variable and setting the value of the file
    control from my variable through javascript and submitting
    the form. But I am not able to set the value of File
    Upload control in javascript. How can i set the value
    through javascript?

    If not, is there any other way to achieve a solution for
    my problem?

    Thanks in advance

    Regards

    Sundar
  • Power

    #2
    Multiple File Uploads

    Did you read this article?

    I think that it is very useful for you.
    [color=blue]
    >-----Original Message-----
    >Hi,
    >
    > I am working on ASP.Net. My requirement is that I[/color]
    want[color=blue]
    >to Upload Multiple Files to the Server. I need to have
    >ONLY ONE FILE UPLOAD CONTROL in my page. I SHOULD NOT
    >SUBMIT THE PAGE FOR EACH AND EVERY DOCUMENT browsed.
    >
    >I am having a File Upload HTML Control and an Add Button
    >on my page. The user will browse for the document to be
    >uploaded and then click on that Add button. I then add[/color]
    the[color=blue]
    >path of the file to a javascript variable through
    >javascript. After adding all the documents, the user[/color]
    will[color=blue]
    >click on Save Button. I then need to upload all the[/color]
    files[color=blue]
    >by accessing my javascript variable.
    >
    >I used webclient class. I am able to upload all the[/color]
    files[color=blue]
    >through a single post. But some extra information like
    >Headers (HTTP CONTENT) gets added to the file. How to
    >eliminate that?
    >
    >I tried to build as many File Upload Controls as my
    >javascript variable and setting the value of the file
    >control from my variable through javascript and[/color]
    submitting[color=blue]
    >the form. But I am not able to set the value of File
    >Upload control in javascript. How can i set the value
    >through javascript?
    >
    >If not, is there any other way to achieve a solution for
    >my problem?
    >
    >Thanks in advance
    >
    >Regards
    >
    >Sundar
    >.
    >[/color]

    Comment

    • Guest's Avatar

      #3
      Multiple File Uploads

      Hi,

      Thanks a lot for your immediate reply. I read the
      article which you mentioned. I want to do it only with a
      single File Input Control. But the code is using as many
      as the number of uploading files. So I think that this
      wont help me.

      Thanks and Regards

      Sundar

      [color=blue]
      >-----Original Message-----
      >Did you read this article?
      >http://www.wimdows.net/articles/article.aspx?aid=4
      >I think that it is very useful for you.
      >[color=green]
      >>-----Original Message-----
      >>Hi,
      >>
      >> I am working on ASP.Net. My requirement is that I[/color]
      >want[color=green]
      >>to Upload Multiple Files to the Server. I need to have
      >>ONLY ONE FILE UPLOAD CONTROL in my page. I SHOULD NOT
      >>SUBMIT THE PAGE FOR EACH AND EVERY DOCUMENT browsed.
      >>
      >>I am having a File Upload HTML Control and an Add Button
      >>on my page. The user will browse for the document to be
      >>uploaded and then click on that Add button. I then add[/color]
      >the[color=green]
      >>path of the file to a javascript variable through
      >>javascript. After adding all the documents, the user[/color]
      >will[color=green]
      >>click on Save Button. I then need to upload all the[/color]
      >files[color=green]
      >>by accessing my javascript variable.
      >>
      >>I used webclient class. I am able to upload all the[/color]
      >files[color=green]
      >>through a single post. But some extra information like
      >>Headers (HTTP CONTENT) gets added to the file. How to
      >>eliminate that?
      >>
      >>I tried to build as many File Upload Controls as my
      >>javascript variable and setting the value of the file
      >>control from my variable through javascript and[/color]
      >submitting[color=green]
      >>the form. But I am not able to set the value of File
      >>Upload control in javascript. How can i set the value
      >>through javascript?
      >>
      >>If not, is there any other way to achieve a solution for
      >>my problem?
      >>
      >>Thanks in advance
      >>
      >>Regards
      >>
      >>Sundar
      >>.
      >>[/color]
      >.
      >[/color]

      Comment

      Working...