How to Upload and Downlaod File to Virtual Directory in Iis

The WebHtmlEditor™ command offers powerful support that allow users to upload files (due east.g., images, and streaming media files) from their desktop to your Spider web server, and and then link to those files within the certificate they are editing. In this walkthrough, you will learn the necessary configuration steps to take when setting upwardly your Spider web server in Microsoft® Net Data Services (IIS) for deployment of a WebHtmlEditor awarding with upload capabilities. When you are finished, your end users tin can upload their files for storage on your Web server to get full benefit out of WebHtmlEditor's paradigm and media attachment capability.

Note

Notation:

If your WebHtmlEditor application uses the "InsertImage", "InsertFlash", or "InsertWindowsMedia" buttons, you lot must properly configure an upload area to receive attached files. Otherwise users attempting to upload a file to your Web server will receive an error when they use these buttons. If your application does not crave attachments, you should remove these buttons as described in, Remove Toolbar Buttons.

Before you begin, you should exist familiar with basic Web site administration tasks. To carry out some tasks described below, you may need administrative privileges to manage IIS and adjust security permissions for NTFS files and folders (or the aid of your Web site's administrator).

  1. Launch the IIS Microsoft Management Console (MMC) snap-in. Y'all can exercise this through the First card (First | Control Console | Administrative Tools | Net Information Services).

  2. Navigate to your Web site and look for the 'ig_common' folder. This is the name of the virtual directory typically installed with Ultimate UI for ASP.NET to contain common resources files such equally JavaScript and image files. You can store uploaded files in either a subfolder or a virtual directory.

Storing Uploaded Files in a Subfolder

Past default, the UploadedFilesDirectory belongings assumes all uploaded files volition be stored in a subfolder of "ig_common" named "upload". If yous would similar the upload files directory to exist contained underneath your 'ig_common' virtual directory, you lot can create a concrete folder underneath 'ig_common' through IIS. This doesn't hateful all of your Spider web applications have to share this physical binder for uploads considering you can set the UploadedFilesDirectory property differently in each of your Web applications (you can even ready a different property value per-user).

Right-click the "ig_common" binder and select "Explore". While you would normally encounter an IIS-managed view of subfolders underneath a virtual directory in the right pane, this view but allows you to add together virtual directories. Using "Explore" opens a standard Windows Explorer vanquish in the right pane, which allows you to click in the correct pane and select "New | Binder" to create a physical binder underneath 'ig_common' (or any virtual directory of your choosing).

WebHtmlEditor Walkthrough Configure the Upload Area in IIS 1.png

Name the new binder "upload" and verify that the setting of the UploadedFilesDirectory property remains "/ig_common/upload". You lot are now fix to receive uploaded files.

Storing Uploaded Files in a Virtual Directory

If you elect instead to store uploaded files somewhere other than a subfolder underneath a virtual directory (whether it is "ig_common" or the virtual directory hosting your Web application), you must instead create a new virtual directory (right-click the "ig_common" subfolder, betoken to New and click Virtual Directory). Then, specify to IIS to associate this virtual directory with the physical folder where the uploaded files will be stored.

WebHtmlEditor Walkthrough Configure the Upload Area in IIS 2.png

Notation

Note:

There is a primal point in the Access Permissions folio of the Virtual Directory Creation Wizard. By default, IIS allows only "Read" and "Run scripts" permissions for the virtual directory. Yous must select the "Write" checkbox to allow users to write their uploaded files to the Spider web Site Content Directory (the physical binder path) yous specified on the preceding folio of the wizard.

WebHtmlEditor Walkthrough Configure the Upload Area in IIS 3.png

  1. (Recommended) Whichever alternative you choose, you tin further secure an upload directory by setting NTFS security privileges on the physical subfolder to which you are storing uploaded files. See the .NET Framework documentation for more information on the ASP.NET identity and how to utilise impersonation to decide which Windows user accounts you should lock down for a secure site.

Yous are now ready to configure an upload area for users of WebHtmlEditor and your Web application. If you are using an uploaded files path that is unlike from "/ig_common/upload" come across Ready Where Uploaded Files are Stored for step-by-step instructions on configuring WebHtmlEditor so information technology tin notice that location.

wyblealleme.blogspot.com

Source: https://www.infragistics.com/help/aspnet/webhtmleditor-configuring-the-upload-area-in-iis

0 Response to "How to Upload and Downlaod File to Virtual Directory in Iis"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel