Back to Devexpress

FileSystemCommand Enum

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-filemanagement-a60cf204.md

latest1.6 KB
Original Source

FileSystemCommand Enum

Lists names of commands that the FileSystemCommandProcessor can process in the file system.

Namespace : DevExtreme.AspNet.Mvc.FileManagement

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public enum FileSystemCommand

Members

NameDescription
GetDirContents

Gets the directory contents.

| | CreateDir |

Creates a directory.

| | Rename |

Renames a file or a folder.

| | Move |

Moves a file or a folder.

| | Copy |

Copies a file or a folder.

| | Remove |

Removes a file or a folder.

| | UploadChunk |

Uploads a file in chunks using multiple requests.

| | AbortUpload |

Aborts an upload and deletes a file or a folder.

| | Download |

Downloads a file.

|

Remarks

The following example illustrates how to create a method that handles file management operations.

API Controller:

csharp
public object FileSystem(FileSystemCommand command, string arguments) {
    if(command == FileSystemCommand.Download) {
        // ...
    }
}

Concepts

Online Demo

Online Example

See Also

DevExtreme.AspNet.Mvc.FileManagement Namespace