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


Top 5 Contributors of the Month
david stephan
Asad Ali
Post New Web Links

File/document upload.download in a web farm

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :ASP.Net
 

I have an asp.net application running on a web farm that allows users to upload files and download them later via link to that file.  Currently, I use Windows DFS to replicate the local IIS directory where the files are stored across the web farm servers.  However, as this solution does not scale out, I want to implement a more scalable solution by partitioning the documents.  Specifically, say I set up multiple file storage servers (Fs1, Fs2, Fs3, etc.) on the network.  Further, let's say I change my upload page to save the uploaded file to one of the file storage servers on the local LAN (based on some logic).  I assume so far I am safe with ASP.NET doing this much assuming I have the correct permission for the ASP.NET process ID.  The question I have is with regards to download links.  When a user gets served a download link to their document (e.g. http://www.testco.com/data/doc1.txt) is there a way for me to "intercept" that HTTP request and underneath the covers server the doc1.txt from the file storage server (e.g. Fs2) it resides on?  Any sample code would be appreciated.  Thanks. 




View Complete Post


More Related Resource Links

Upload a File to a SharePoint Document Library - Part I

  
The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

The file reached the maximum download limit. Check that the full text of the document can be meaning

  

Hi,

I'm facing an issue with the indexing.

I have 1 WFE+Index server+DB server.

Index server is not installed with MS FIlter pack 1.0

When crawling, the there will be document with warning in crawl log:
The file reached the maximum download limit. Check that the full text of the document can be meaningfully crawled.

Documents that with warning are such as doc, ppt, xls, docs, ppts and many others.
However, I view into the successful crawled document, there are doucments with ext doc and ppt.

For large file index, there are MaxGrowthFactor + MaxDownLoadSize required to be added into the index server.


As my understanding is, MS Filter Pack should installed into index server(already did, correct me if i'm wrong).

I looked into the Office SharePoint Seach(CA>Services in farm), if the server is appointed to "Use this server as indexing server", then MS Filter Pack is suppose to be installed into that particular server as well.

At the bottom, there also has another option is "Use all web front end for crawling".

The question here is, IF the option "Use all web front end for crawling" is selected.
Does the WED FRONT END Server required to installed the Ms Filte

Reg File Upload control to upload files from document library

  
Hi,

In Field Upload control if we click browse button it allow us to search file in our hard disk but now as per my requirement as soon as user clicks ‘Browse’ button it should point to the document libraries and their files in site.Let me know how could i achieve this?
 

Thanks & Regards,
 

Sudheer

ASP:Upload control . Uploading into a SharePoint Document Library Subfolder and FILE NOT FOUND error

  
RE: ASP:Upload control . Uploading into a SharePoint Document Library Subfolder and FILE NOT FOUND error Two Issues, apparently unrelated. I have subfolders like this /ApplicantDocuments/20 and /ApplicantDocuments/21 (where 20 and 21 are my subfolders and ApplicantDocuments is my library. 1. The below function is erroring with file not found, but I confirmed I'm sending the fully qualify path (i.e c:\test.txt) to System.IO.FileStream content = System.IO.File.Open(documentFileName, System.IO.FileMode.Open); 2. Even if it worked, looking at the code, I'm not using argument foldername.  I'm passing 20 to the argument. How can I make sure it uploads into subfolder 20 of ApplicantDocuments? Thank you.     Just testing in test environment. Will tighten code once it works.   public void UploadDocumentToSite(string foldername, string documentFileName) {      SPSite siteCollection = new SPSite("https://xxxxxx");      SPWeb web = siteCollection.OpenWeb();      //SPSite.AllowUnsafeUpdates = true;      //Web.AllowUnsafeUpdates = true;      string Lib = "ApplicantDocuments";      SPFolder destFolder = web.GetFolder(Lib);      sendmail(documentFileName+" "+foldername);  

File Upload to database (and download)

  

Hi,

How can I upload a file to a database (with as little code as possible!) along with a desciption of a file and then search through the descriptions to retrieve the appropriate files. Then how can I click on one and download it.

I am not a very advanced programmer and would like full step by step code if possible not just a link to a website.

Thank you very much

R


how to set a client folder to get upload and download the file.

  

i create a web site for uploading and download but i require that a folder create in client side if client download the file these file automatically save 


File upload in web farm

  

How does file upload work on a web farm? does the file you upload replicate on all the servers ?


Move a file from a Document Library to a location on a server not in the SharePoint Farm

  
I have an excel file I need to move daily from it's location in a MOSS enterprise edition Farm, to a location on a SQL server not in the farm but in the same domain. Is there some method I can use using OOB SharePoint or OOB SharePoint w/SPD?

document/file partitioning in a web farm

  
I have a .Net application running on a web farm that allows users to upload files and download them later via link to that file.  Currently, I use Windows DFS to replicate the local IIS directory where the files are stored across the web farm servers (/data).  However, as this solution does not scale out, I want to implement a more scalable solution by partitioning the documents.  Specifically, say I set up multiple file storage servers (Fs1, Fs2, Fs3, etc.) on the network.  Further, let's say I change my upload page to save the uploaded file to one of the file storage servers on the local LAN (based on some logic).  I assume so far I am safe with ASP.NET doing this much assuming I have the correct permission for the ASP.NET process ID.  The question I have is with regards to download links.  When a user gets served a download link to their document (e.g. http://www.testco.com/data/doc1.txt) is there a way for me to "intercept" that HTTP request and underneath the covers serve the doc1.txt from the file storage server (e.g. Fs2) it resides on?  Any sample code would be appreciated.  Thanks.

Drag-n-Drop option for file upload in Document library

  

Hi All,

Is there a way to provide a drag-n-drop option to the users in Document library of sharepoint 2010 when the document library was configured in Listview mode? I know this is possible via Explorer view option; but our users wants it in Listview mode itself.

Cheers,

Sathish. R

 


Sathish Kumar

web service file download and upload

  

Hi

I am trying to create a web service that can check a location for file and if available get the contents.

Also this web service has to upload the file using ftp after making changes locally.

Any pointers in this direction.

 

Thanks 


Drag-n-Drop option for file upload in Document library

  

Hi All,

Is there a way to provide a drag-n-drop option to the users in Document library of sharepoint 2010 when the document library was configured in Listview mode? I know this is possible via Explorer view option; but our users wants it in Listview mode itself.

Cheers,

Sathish. R

 


Sathish Kumar

upload book,document and file

  

hi!

 I need to upload book , document and file, that must be stored in a database table. For this I need code. Reply soon.   


Multiple file upload to the sharepoint document library using file upload control inside the gridvie

  

how to upload multiple files to the sharepoint document library using fileupload control inside the gridview.

form design is

<asp:GridView id="gridview1" runat="server"  autogenteratecolumn="false">

<asp:TemplateField HeaderText="3DFinal">

<ItemTemplate>

<asp:FileUpload id ="Fileupload" runat="Server"/>

</ItemTemplate>

</asp:TemplateField>

<asp:TemplateField HeaderText="2DFinal">

<ItemTemplate>

<asp:FileUpload id ="Fileupload2" runat="Server"/>

</ItemTemplate>

</asp:TemplateField>

<asp:TemplateField HeaderText="Final">

<ItemTemplate>

<asp:FileUpload id ="Fileupload3" runat="Server"/>

</ItemTemplate>

</asp:TemplateField>

</asp:GridView>

 

<asp:Button Id="Buuton1" runat="server" text="Save"/>

if i click save button files should go to my sharepoint document library.

if any one know pls help me...

 

thanks,

ANNT


Upload Multiple File using JQuery in asp.net

  
In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Multi File Upload Using JQuery!

  
Everyone knows about the file upload in .NET. But the multi file upload is some what difficult in .NET. For that purpose we can have some AJAX or JQuery!. Jquery is the latest advanced version. It will give some animated upload. You can try it for your own!!!!

file upload in chunks or not buffering in memory before writing to disk?

  

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?


Thanks


Categories: 
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