Uploading files to IIS server - c#

I just wanted to ask is it possible to upload files to IIS server? If it's possible please describe me how to do it, thanks. I've been using google since 1h and i found nothing.

If all you need is file upload to your web server, you could set up FTP on your server
http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-ftp-7-on-iis-7
If you are looking for a file upload capability for your web application, you can use the FileUpload control. The file would be POSTed to your page once you submit your form. The MSDN page has a an example of how to use the control and save the file on the server side.

Create a web application that has file upload capability
Host the web application in IIS.
Files uploaded will be dropped in your applications folder.
Take a look at for an example of file upload with WebApi: http://blogs.msdn.com/b/henrikn/archive/2012/03/01/file-upload-and-asp-net-web-api.aspx

Related

File Drag&Drop from Browser to Browser

My asp.net web application is some kind of "document managment system" saving files in the file system of the server.
The stored files are shown in an asp:ListView control and are downloadable as HTTP- Download. But I also want to drag&drop them into another browser window to upload the draged file to an cloud storeage like dropbox or google drive oslt.
I did some research and I didn't find any solution for this problem. I don't know if this is even possible. Maybe someone has an idea how this could be done?
I am pretty sure you can't have a web application doing that for you because it involves having your web language interacting with your computer, to move a local file to another window or tab in the browser.
It would be similar to have Javascript accessing your local files without the user "help". That is not allowed.
Rather than doing that, why not connect to Google Drive or Dropbox API and make the upload yourself?
In the piece of code where you trigger the download, you could also trigger an upload to the desired service.
Here are the API Documentation for the mentioned services:
https://www.dropbox.com/developers/documentation/http/documentation#file_requests-create
https://developers.google.com/drive/api/v3/manage-uploads

asp.net fileupload control to upload file to different domain

I have two websites: Website A and Website B. Is it possible to use fileupload control on website A and through which I upload the file to website B.
I have been looking for solution for some time but not found any.
I know we can access any file on website B so it's not have any access restriction.
if you're using a shared web host then your options are limited, check this link
http://madskristensen.net/post/simple-ftp-file-upload-in-c-20
and check the last post in this
upload files to a different server

Use google doc API in asp.net C# web application

I am developing a web application in C#.net. I need to edit a file placed on the server in browser it self(Without downloading it on local machine) and when I save that file, the changes should be reflected in file. For this I want to use google API but I don't know how can I use this.
I want to do like below.
When I click on file name, it should open in browser.
When clicked on edit, it open in edit mode in browser using google doc.
When I save that file, the changes should be reflected in my file which is placed on company server.
How can I do all this thing with google doc API?
Install Google Drive on your server.
Edit the file in Google docs, let Google Drive sync it to the local hard drive.
It is not possible for HTTP protocol, because the basics system doesn;t support it. You can open the file but the file will be downloaded to your local machine in then it will open, you have to specify the MIME type in IIS.
You can use two ways to do a similar job done.
1 By Using FTP
2 Customized solution : Make a page put a text field and load the file (.cs) in it and with submit save it to the file back.
You can embed a google doc in Webpages. But the file would be accessed and saved on Google's servers and not your company server:
Wordpress allows you to do it. Potentially you can see if it possible to do it in a similar way:
http://en.support.wordpress.com/google-docs/
I am not sure if Google has an option of accessing docs from servers outside google's domain.

ASP.NET -Search and access local disk or network files in web

How can i search and download local disk files from web?
some codes available for searching local disk files by C#. but not web based....
please help me friends for searching algorithm..
Thanks,
regards,
Raj.
I can suggest you some asp.net web File Browsers, like ckfinder and a source code from codeproject.
http://ckfinder.com/
http://www.codeproject.com/Articles/301328/ASP-NETUser-Control-File-Browser
From the moment you select your file, you can simple click on it to get it, or use a http handler to send it to the client.

Is it possible to upload files in a website server not set-up in FTP in ASP.NET?

I'm creating a web tool in ASP.NET(c#) which can upload images to different sites and one of the sites is not set-up in FTP. Is it possible to upload files in the that site(with credentials)? If it is, can you please enlighten me on the process?
Thanks...
You could look at creating an image admin page which uses the FileUpload control.
Take a look at the fileupload control. It allows the user to do exactly that.
You can use the FileUpload control. But it will only allow upload data to the web server.
But if you need to save file to a different server, you will probably need handle the POST request.
I think this article about Writing Server-Side Upload Code may help you.

Categories