.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Upload multiple files to Server

Posted By:      Posted Date: September 06, 2010    Points: 0   Category :ASP.Net
I have an ASPX Page that contains a fileuploader, I want to know how can I upload multiple files together to server and also create a new folder on Server and then upload these files into this new folder! Please send your sample codes in VB.NET,   Thanks,

View Complete Post

More Related Resource Links

Upload multiple files in asp.net

The article Upload multiple files in asp.net was added by habdulrauf on Friday, July 09, 2010.

Some times we need to allow user to upload as many files as he/she wants instead of fixed number of files.So here is the procedure to achieve this. Idea is taken from Joe's video.%@ Page Language="C#" AutoEventWireup="true" CodeFile

how to upload files (5MB-50MB) into sql server 2008 by using filestream

Hi!i have some files, and i need to upload these files into sql server 2008 by using filestream.lets take table name as custfiles,              columns are fileid,filename,filepath,filesize.1.how to create table using filestream?2.how to insert file (record) into table from .net environment?3.how to retrive that file from .net environment?please provide related code....THANS FOR ANY HELP

FtpWebRequest - how to upload two files on FTP server using only one connection?

Hi I am using FtpWebRequest with option KeepAlive = true. When I upload first file I create ftp request object: FtpWebRequest result = (FtpWebRequest)FtpWebRequest.Create(""); I set KeepAlive = true and I do upload file. When I want upload second file I have to create new FtpWebRequest object using new URI FtpWebRequest result = (FtpWebRequest)FtpWebRequest.Create("");   I set KeepAlive = true and I do upload file. The problem is that I have to create new FtpWebRequest so I create new connection to FTP server (I have checked using netstat -b command that my application uses another port number for second file). How can I upload two files (or more) using only on FTP connection/session? Regards  

Multiple XML files into SQL SERVER Express 2005

Hello. I am familiar with classic ASP and use this with MS SQL SERVER EXPRESS. I have an SQL table and want to import multiple XML files into this on a daily basis. I currently have 3 files, transferdata.vbs which loops through the XML files. FAQschema.xml which maps XML to the SQL database and test.xml shows the xml in the test file. If I run transferdata.vbs I get the following error "Error opening the data file" line 33 char 3. Microsoft Bulkload for SQL Server". My SQL table is called EnqOrd id (int), Debitor (varchar), PurchaseDate (varchar)     transferdata.vbs set objBL = CreateObject("SQLXMLBulkLoad.SQLXMLBulkLoad") objBL.ConnectionString = "Provider=SQLOLEDB; Data Source=XXXXXX\XXXXX; Initial Catalog=XXXX; User ID=XXXXX; Password=XXXXXX" objBL.ErrorLogFile = "E:\fuelsql\Teccom\error.log" ' Here is the path to your XML files Const path = "E:\fuelsql\Teccom\XML\" Dim Text, Title, oFile Dim fso, oFolder, oFiles, wsh ' Object variables Text = "Folder " Title = "XML Files" Set wsh = WScript.CreateObject("WScript.Shell") ' Create FileSystemObject object to access the file system. Set fso = CreateObject("Scripting.FileSystemObject") ' Get Folder object. Set oFolder = fso.GetFolder(wsh.ExpandEnvironmentStrings(path)) ' Get All Files Set oFiles = oFolder.

Import Multiple XML files into Sql Server

Hi, i have nearly 1000 xml files in one folder of similar format and I have xsd for the same as well. I would like to import all the files in to sql table by either looping through all the files or any other way. Thanks

remove upload multiple files link from upload.aspx..

hi, is there a way to remove the upload multiple files link from upload.aspx..without using any custom coding.

C# Upload multiple files in sequence

I have  a project that requires me to upload multiple files to an FTP server. I have the code working perfectly as long as I upload one file and close the connection. The problem I am running into is when I try to upload more than one file. I keep getting different errors depending on how I configure the code. For example, I can upload the first file using a WebRequest... and then run the Stream and upload fine. However, when I go to the second file, I run into an error where it tells me that the Stream is not clsed. Not a problem, I can close the Stream but I run into a problem on the second file because I get a differnet error telling me that the Stream is open. We configured the code to open the connection upload the file, close the connection, open another connection upload the file and close it but that is causing problems. My goal is to open a session, open the Stream, upload the file, go to the next Stream and upload the file, and close stream and connection. Basically I want to upload the files just as if I was using a BAT file, which by the way works great, but I want to accomplish all of this with C# instead of calling a BAT file. I pasted the code below and I would really appreciate your help. I need to upload the files in order and not all at once. Thank you in advance FileInfo ToUpload = new FileInfo("D:\\FTP\\FTPScripts" + "\\&quo

Is there a way to upload multiple files to a SharePoint List Item in MOSS 2007? I can not use Doc Li



Is there a way to upload multiple files to a SharePoint List Item in MOSS 2007? I can not use Doc Library because of the funcationality.

Thank you,



Need a good solution on how to allow a user to upload multiple files


Im currently working on a project where i have a form that users fill out in order to submit issues.
My ask is to give the user the ability to upload multiple files together with the form submission and also go back each time they have an update and upload more if they need.
The way i have it right now is that i only have one FileUpload Control and once the Save button is clicked the file is save in the database together with the form info.

 I already has a separate table for the files with reference to the ticket but im just not sure how can i allow the user to submit as many files as they want in an easy way.

Any ideas?

Upload Multiple Files is disable in sharepoint 2010 how can a fix this


After upload a wrong file in sharepoint 2010 , the upload multiple files button dont work anymore . If a click on the button upload Multiple Files  a will see only a light blue screen . How can a Fix this Problem .?

Need to turn on/enable multiple files upload for some users



I have some users not being able to upload multiple files to a SharePoint folder.

Details: In the upload sub-menu I have

  1. Upload Document
  2. Upload Multiple Documents

However, the other users only have option 1 "Upload Document" but they cannot even see "Upload Multiple Documents"

What should I do? I am open to suggestions. If you need additional questions please let me know.


upload multiple files from a single upload button i infopath form


Hi all

        My Infopath form contains an image upload button . Is it possible to upload multiple files at a time from the same upload button.




Upload Multiple Documents to Asset Library fails for files >100 MB


The upload of large files > 100 MB fails with the "Upload Multiple Documents / Drag & Drop"-Feature, where it is no problem to upload the failed files as single file via Upload Document - "Browse..." with filesize up to 2GB.

Any workaround or configuration tricks known?

(Windows Server 2008 R2, SQL Server 2008 R2, SharePoint Server 2010)


How to upload files to an IIS server?


Let me first describe the actual need first.

I have  a java application runnning on my pda ( a Windows Mobile device). I want to upload a text file from my device to a server using gprs connection.Currently I have a jboss server, and a client application in VC++ that uses the Wininet api.This VC++ client application establishes the gprs connection and also uses the http method of wininet api for file uploading.

I am having difficulty using the http post method for uploading files to the jboss server. I want to use Http "PUT" method at client side.

So I want to create a application at server( I want to use IIS now instead of jboss),that would accept the byte stream from my VC++ client application and create a file at a folder on the server.

Help me with some codes and necessary guidance for doing this.

Thanks in advance.

0 && result.transliterations[0].transliteratedWords.length > 0) { var res = result.transliterations[0].transliteratedWords[0]; if(callback){ return callback(ele, res); } ele.innerHTML = res; } } }); }, getLang: function(code){ for (l in google.language.Languages) { if(google.language.Languages[l] == code){ return l; } } }, getLanguageForCode: function(code){ var lang = Transliterate.getLang(code); if(lang){ lang = Transliterate.getCa

failed to upload multiple files to a document library!


I have a document library. I have upload a lots of files by upload multiple documents function several days ago. When I tried to upload some files today. It always failed if I drag a folder into the upload multiple documents dialog.

Drag a folder with any number of files in it to the upload multiple documents dialog. Failed.
Drag files into the upload multiple documents dialog. Sucess.
Create a folder manually, then upload files into the new folder. success.

Anybody have some clues for this problem. Why today I always failed to upload files when I drag a folder?

Thanks very much.

Missing "Upload Multiple Files" tap



I can't find the tap of "upload multiple files". Could anyone tell me what is happening?

I have created a document library. In the "Upload" menu, there is only one choice - "Upload Document". After clicking on that, there is still nothing related to "multiple files".

I understand that I could use the explorer view to upload, but I just wonder if there is any other method which can handle this.

Thank you very much.


C# to upload and download files from an FTP server

use C# to upload and download files from an FTP server
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend