ASP.NET MVC コントロールヘルプ
ローカルストレージ内のファイルの管理
コントロールの使用 > File Manager > ローカルストレージ内のファイルの管理

In addition to cloud storage, FileManager supports the local storage. It uses the storage APIs of the C1WebAPI to integrate with the local storages and handles all your files stored in the local server. File Manager allows you to choose the local storage using CloudType property of the FileManager class, which accepts the cloud name from the CloudTypes enumeration. Additionally, it also allows you to host the Url of the machine which hosts the server using the HostUrl property and define the initial path of the root folder from cloud container folder using the InitPath property.

The following example demonstrates the File Manager control integrating with the local storage and accessing a folder from the file system in local storage. Hence, the InitialPath key is set as "ExcelRoot/LocalDocuments" in the example.

View Code

Index.cshtml
コードのコピー
@(Html.C1().FileManager().Id("FileManager")
.HostUrl("http://localhost:61712")
.InitPath("ExcelRoot/LocalDocuments")
.CloudType(CloudTypes.LocalStorage)
)