Web Forms :: How To Upload And Download Files From Remote Servers Without Using FTP
Sep 14, 2010Can we upload and download files from remote servers through code without using FTP?
View 2 RepliesCan we upload and download files from remote servers through code without using FTP?
View 2 RepliesI am developing a intranet application in C#.
I am developing a application where files can be uploaded to staging area. and after saving to staging area a email confirmation is send.
After browzing for the file from local drive ,user gives a email id and click upload button ,then file should be saved to staging area. and then aconfirmation email should be sent to email id entered. we are using Exchange server to send emails.
i have a website that accepts files from users.
the site currently save all files to a local directory (~/Data/<Date>), which can be accessed via [URL](Public server)
however to increase performance i need to save the file to a remote http host. ex [URL] (different public server)
i have ftp access to all my public server.
i'm just confused as to which is the most secure way to upload the files from codebehind.
FTP or HTTP Post.
the <date> section of the URL is dynamicall generate using Directory.CreateDirectory(Server.MapPath("<year><month><day>");
i want upload zip and rar file to server and download it and audio and video file also.
View 1 RepliesWe need to download multiple files from remote servers. It is a process that would take few hours to complete, since we are talking about images ~50kb each and more than 250.000 in total. Each images will downloaded, resized and then imported to SQL.DB, so we do not need to write files to the disk. Also the applications need to use network credentials, since it is behind ISA.
From your experience, what is the best method to implement this? Should we use WebClient or HttpSockets? Should we use Async methods or Threads ? How can we implement for example 5 simultaneously download to achieve better speed, since we may getting files from many different servers at once?
I want asp.net code for uploading and downloading word file in a website...
View 1 RepliesHow to Upload multiple files from folder and then Download uploaded multiple files from folder without using Gridview in ASP.NET c#.
View 1 Repliesi just want to create one colum in gridview where in the edit view i can upload the file and in the after the uploading the download links comes for download is it possible ?
or
just tell me the girdview colums get files for download from particular /download folder ?
What are specific privileges required to upload and download files from an ASP.Net page?I am using .Net 3.5 with IIS 7.0Prior to upload/download, how do I check whether specific folder has specific privileges to upload/download filesThis was so easy in classic ASP, but it seems too tricky in ASP.Net
View 1 RepliesI want to make a website that has many files and the user can use it to download the files. Also, the admin can upload any file. How I can save the files so the file will be exist when the user download it and where I can put the file when the admin upload it?
View 2 RepliesI was just wondering what the best approach would be for uploading/downloading files. My users want to have the ability to upload and download emails to various Orders but i'm not sure of a few things.
Would I need a new table and reference it to my Orders table? Or would I need to create a new table and add columns such as file location, and upload the files to a particular server? Also since I am working on a Windows machine, i'm not really sure how to connect to my server to allow me to upload/download files (not sure if that makes sense).
I'm not a core web programmer. I'm building an web application which will track defects, using ASP.Net and MySQL. There is a requirement for me to attach multiple files to each review/defect.
how to upload files to MySQL and generate link for the uploded files in the ASP.Net form? Also when the user clicks the link I need to retrieve the file from the MySQL database and download the file to a directory in the client pc.
My web service Return Files bytes Correctly .service Code is as Follows...
[WebMethod()]
public byte[] Download_Files_From_Database1(string File_ID)
{
try
[Code]....
when i hit url it gives required Output.but not using in above code
If the file uploaded to a folder. How to create at table dynamically so that mant files are being uploaed and as many files are uploaded row are being created in this way
1) file name on the 1st coloumn
2) path of the file saved and once it is clicked it is downloaded (e.g., pptx)
How can I access remote server's details like RAM details, CPU details etc with a ASP.NET application. I used System.Management class and wmi but the application runs too slow. Is there any another way to do this which is fast and efficient.
View 4 RepliesHow to upload a file to two different servers
Here is Code behind:
Protected Sub btnUpload_Click(ByVal sender
As Object, ByVal e As System.EventArgs)
Handles btnUpload.Click
Dim fileExt As String
fileExt = System.IO.Path.GetExtension(FileUpload1.FileName)
If (fileExt <> ".exe") Then........
I need to write an application that retrieves entries in the MMC event logs (application, system and security events) and would like to do so in ASP if possible. This is an internal application. Someone told me to use PowerShell.
Is it possible to do this in ASP (and use PowerShell) or do I need to use some other tools? I would like to retrieve events into a DataGrid etc.
I have added a service reference to my web application project
The service is in a remote location [URL]
it has a method
[code]....
How can I use that remote web method for autocompleteextender ?
We have a problem where in the user can download files from an email. A link that will redirect to a page where the code to download the file resides. Before the download the user needs to be logged in to the system for security. The problem is that sometimes for whatever reason when the user clicks the link the download dialog box does not appear and just a blank white page. It happens only on our staging environment where we have 3 servers.. We can't reproduce this in our dev and test env. where we only have one server.
Below is the actual code.
[Code]....
I see a ton of questions about uploading multiple files, but none about uploading a single file to multiple servers, so here goes... I have an ASP.NET app that will be running on two load balanced servers, and I would like to allow users to upload files and have them end up on both servers. What is the cleanest way to do this? I am using IIS 6 btw. Some ideas that come to mind are:
1) Use a virtual directory that points to some shared location that both servers can access. Will there be any access issues if the application runs at Network Service? I'm assuming the application will need to run as a user account that exists on the shared location machine. How should the permissions be set for this?
2) It would be nice if I could via jQuery post the request to both of my servers, referencing them by their port numbers. Even though the servers are on the same domain, this violates the same origin policy, right? Is there another solution I'm overlooking? How do other sites do this?
I am trying to access a remote network share from a C# program in asp.net. What I need is something like
function download(dirname)
{
file = (This is the part I don't know how to do)
for file in directory:
copyfile(file);
}
Im using a file uploader to upoad files to a folder used for upload.But the problem is this folder is a linux folder. I have made it a shared folder so that I can access from windows by samba. So, file transfer is successful when I'm using os but when I try to upload something from my websites uploader to this folder, this process is not successful. I have given all permissions to this folder.Don't know whats the problem.I have used both type of slashes for directory but still it is not successful.
View 4 Replies i have a production server that does not have ftp access. Possible way to deploy files is connecting with remote desktop client and send files.
As you know this approach is highly hard and time inefficient.
I have a situation where we are splitting dynamic content from static content and each is getting its own web server. The people maintaining the site want to be able to make navigation changes once and have it show on both servers without any major extra work (for them). I'm putting the navigation structure in an XML file which also has information on things specific to each content page. This brings me to the question of how to share that file. If I want the change to be instantaneous I can't rely on a scheduled task to copy the file from one server to another.Access to one of the servers is very limited due to security policy.
I am thinking about maybe a web service running on one server to get the data from it to pages on the other server. Does this sound viable or do any of you have other ideas that may work better? I considered having the navigation in a database but this introduces the need for a tool for the navigation updaters to have for them to do that. It is easy for them to update XML and just publish to the server with a lower security level. To get them database access requires terrible paperwork and meeting with security people.
I have a remote xml file like [URL]
I would like to write a program to download it to local with progress bar.