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

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

Download & Upload Files to https

Posted By:      Posted Date: October 28, 2010    Points: 0   Category :.NET Framework



I hope i'm on the right forum. If not my appologies.

I want to have the posibility to upload & download files to a Https server.

I have found a way to do this with http but what is the difference between http & https.

I know https is secured thats why I want to use it but what way do I make a connection to it?


for http I found this article: http://www.c-sharpcorner.com/UploadFile/mahesh/WebRequestNResponseMDB12012005232323PM/WebRequestNResponseMDB.aspx


I don't want to use third party software.


Also a side question:

Is it possible to send data using FTPS. I've managed to upload and download data from a FTPserver using the WinInet.dll but this isn't possible to do it on a FTPS server (i think)

Is there a way to connect to a FTPS server and upload and download data to and from the server?


kind rega

View Complete Post

More Related Resource Links

How to upload and download files from remote servers without using FTP

Hi, Can we upload and download files from remote servers without using FTP? If yes can you please tell me how can we do that? Thanks in advance, Vikas Jaigude. 

C# to upload and download files from an FTP server

use C# to upload and download files from an FTP server

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

Reg File Upload control to upload files from document library


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,


Download the PowerPoint Files Used in Sessions During the SharePoint Conference

View PowerPoint files that represent a selection of the ten most popular SharePoint 2010 and Office 2010 developer track sessions at the conference.

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  

Cannot Upload Files Larger Than 30mb

We've followed the steps outlined in the MS KB Article here: http://support.microsoft.com/?id=925083 however we continue to be unable to upload files larger than 30mb to document libraries in our production MOSS farm.Web App set to allow 250mb uploadsUsing 10mb a file called "test20.mp3" - No issues, upload works fineUsing a 31mb file called "test31.mp3" ...When we attempt to upload into a document library using upload.aspx, we get a 404 page with the following URL (domain removed):http://WWW.THEDOMAINNAME.EDU/about/_layouts/Upload.aspx?List=%7b4945146E-FB11-4E80-8D2F-954996EB47F4%7d&RootFolder=%2fabout%2fDocuments&Source=http%3a%2f%WWW.THEDOMAINNAME.EDU%2fabout%2fDocuments%2fForms%2fAllItems.aspx  When we attempt to upload using the Explorer view of that same document library (all other document libraries tested exibit the same behavior), we get an error pop up box: "An error occurred copying some or all the selected files."  (NOTE: we appear to be using FPRPC in the Explorer view, not sure if that is relevant or not)We've tested this behavior on two other test farms we have running.  On both farms, (one WSS, one MOSS) uploading the same 31mb test file works fine with all the default settings in place.MOSS Environment2 Node Windows NLB FEsSQL2000 BEWindows 2003 Standard SP2Any input would be greatly appreciated.

display files to download based on who is logged in

I have an asp.net web app. I have secure parts to the website and currently I have it setup so that people can login with their domain accounts. The are three secure sections to the site, all of which require files of interest be displayed to the user so they can download them.Okay so this is how I see it working, people come to the home page and select on one of the three options. At this point they are prompted for there domain password then they are navigated to the secure page and a bit of code populates the page with file downloads based on who they are logged in as.The files themselves will be uploaded to the website and kept in folders named after the username. so for instance the user edwardh would be displayed the files in the folder /downloads/edwardh.I'm not sure where to start with this, any direction? 

Upload multiple files to Server

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,

Treeview node to add onclick event to download files

 Hi, I would like to know how to add onclick evend to a TreeNode so that the file can be downloaded.   How can I implement below sample code to a TreeNode? <a href="#" onclick="popup('/directory1/Somefile.doc'); return false;" target="download"> Somefile </a> <script language="javascript"> function popup(url) { popWin = window.parent.open(url, 'popWindow', 'height=900, width=900, toolbar=no, menubar=yes, scrollbars=yes, titlebar=no, resizable=yes,location=0, directories=no, status=no'); } </script> I have TreeNodePopulate event to populate nodes like this: protected void DocRepository_TreeNodePopulate(object sender, TreeNodeEventArgs e) { .... String[] files = Directory.GetFiles(fullPath); foreach(String file in files) { TreeNode newNode  = new TreeNode(Path.GetFileName(file), Path.GetFileName(file)); node.ChildNodes.Add(newNode); } }   Thank you in advance.              

Membership as a security/administration model for upload/download of documents

Hi community, I'm working on a website where it should be possible for registered users to upload word documents. The administration of users is done through Membership and Profiles. When the documents have been uploaded, the following needs to be achieved: Non-registered users should not be allowed to download documents I should be able to control which users that has access to which documents I should be able to register which user downloads which documents I should be able to track how many times a document has been downloaded Can this be achieved be using Membership and Profiles? Thanks in advance Best regards Phecdaret

Upload large files from a web page

I am trying to figure out a solution to upload large files under a web page. I know WCF + Streaming is a proper solution for large file transfers, but I am not sure how to get the WCF client implemented under ASP.NET. Here is the link: http://mark-csharp.blogspot.com/2009/01/wcf-file-transfer-streaming-chunking.html Please advice if you have any solution.   Besides, is there anyway I could implement a progress bar showing the upload progress while the file is being uploaded, and voiding page timeout?

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.

Can't upload some pdf files to library

Hi there I got some pdf files about 40 or more Mb, and I already set the upload limit to 100 Mb in site setting. I tried to upload them only one file each time but always got wrong without any error message and shows nothing on the page with url looks like this: http://servername/site/_layouts/Upload.aspx?List=%7b2677D186-FEA0-4B28-91E5-E6F2B846DF90%7d&RootFolder=%2fes%2fFeed+Library%2fProject+FEED+Studies&Source=http%3a%2f%2fservername%2fsite%2fFeed+Library%2fForms%2fAllItems.aspx%3fRootFolder%3d%252fes%252fFeed%2520Library%252fProject%2520FEED%2520Studies%26FolderCTID%3d%26View%3d%257b0A2591CB%252d5354%252d4C8A%252d8F5A%252dA1EDB6313A01%257d any idea how to solve this? it's MOSS 2007 sp2 in Win 2008 R2 environment. Thanks in advance. allan

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

SharePoint upload files from windows explorer and emails from outlook by drag and drop

Guys, I need to have this functionality to upload files and mails by drag and drop, now sharepoint allows it by having that folderview in IFrame which takes the dropped item, but this does not allow files with spcial characters due to http URL related issue. How can I customize or program this to allow files with special chars in name, if not possible then how can I rename before the drop is over ? thanks, ram    
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