FileServerController
Last updated: 2025/3/7 11:40:50 | ||
Path To | Name | Description/Function |
/api/file | /delete/{path} | Deletes the specified file. |
/api/file | /delete/{dir1}/{filename} | Deletes the specified file. |
/api/file | /delete/{dir1}/{dir2}/{filename} | Deletes the specified file. |
/api/file | /delete/{dir1}/{dir2}/{dir3}/{filename} | Deletes the specified file. |
/api/file | /delete/{dir1}/{dir2}/{dir3}/{dir4}/{filename} | Deletes the specified file. |
/api/file | /delete/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{filename} | Deletes the specified file. |
/api/file | /download/{filePath} | Downloads the specified file. |
/api/file | /download/{dir1}/{fileName} | Download the specified file. |
/api/file | /download/{dir1}/{dir2}/{fileName} | Download the specified file. |
/api/file | /download/{dir1}/{dir2}/{dir3}/{fileName} | Download the specified file. |
/api/file | /download/{dir1}/{dir2}/{dir3}/{dir4}/{fileName} | Download the specified file. |
/api/file | /download/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{fileName} | Download the specified file. |
/api/file | /downloadfolderchunk/{chunkIndex}/{folderPath} | Downloads a chunk of a folder. |
/api/file | /downloadfolderchunk/{chunkIndex}/{dir1}/{folderName} | Downloads the specified file. |
/api/file | /downloadfolderchunk/{chunkIndex}/{dir1}/{dir2}/{folderName} | Downloads the specified file. |
/api/file | /downloadfolder/{folderName} | Downloads the specified file. |
/api/file | /downloadfolder/{dir1}/{folderName} | Downloads the specified file. |
/api/file | /downloadfolder/{dir1}/{dir2}/{folderName} | Downloads the specified file. |
/api/file | /downloadfolder/{dir1}/{dir2}/{dir3}/{folderName} | Downloads the specified file. |
/api/file | /downloadfolder/{dir1}/{dir2}/{dir3}/{dir4}/{folderName} | Downloads the specified file. |
/api/file | /downloadfolder/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{folderName} | Downloads the specified file. |
/api/file | /downloadthumbnail/{dir1}/{fileName} | Download the specified thumbnail. |
/api/file | /downloadthumbnail/{dir1}/{dir2}/{fileName} | Download the specified thumbnail. |
/api/file | /downloadthumbnail/{dir1}/{dir2}/{dir3}/{fileName} | Download the specified thumbnail. |
/api/file | /downloadthumbnail/{dir1}/{dir2}/{dir3}/{dir4}/{fileName} | Download the specified thumbnail. |
/api/file | /downloadthumbnail/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{fileName} | Download the specified thumbnail. |
/api/file | /downloadthumbnail/{fileName} | Downloads the specified thumbnail. |
/api/file | /gallery | A gallery view of files in the root directory. |
/api/file | /gallery/{dir1} | A gallery view of files in the directory depth 1. |
/api/file | /gallery/{dir1}/{dir2} | A gallery view of files in the directory depth 2. |
/api/file | /gallery/{dir1}/{dir2}/{dir3} | A gallery view of files in the directory depth 3. |
/api/file | /gallery/{dir1}/{dir2}/{dir3}/{dir4} | A gallery view of files in the directory depth 4. |
/api/file | /gallery/{dir1}/{dir2}/{dir3}/{dir4}/{dir5} | A gallery view of files in the directory depth 5. |
/api/file | /getfileinfo | Get the specified file info. |
/api/file | /list | List files in the root directory. |
/api/file | /list/{dir1} | List files in the specified directory of depth 1. |
/api/file | /list/{dir1}/{dir2} | List files in the specified directory of depth 2. |
/api/file | /list/{dir1}/{dir2}/{dir3} | List files in the directory of depth 3. |
/api/file | /list/{dir1}/{dir2}/{dir3}/{dir4} | List files in the directory of depth 4. |
/api/file | /list/{dir1}/{dir2}/{dir3}/{dir4}/{dir5} | List files in the directory of depth 5. |
/api/file | /wdelete/{path} | Deletes the specified file. |
/api/file | /wdelete/{dir1}/{filename} | Deletes the specified file. |
/api/file | /wdelete/{dir1}/{dir2}/{filename} | Deletes the specified file. |
/api/file | /wdelete/{dir1}/{dir2}/{dir3}/{filename} | Deletes the specified file. |
/api/file | /wdelete/{dir1}/{dir2}/{dir3}/{dir4}/{filename} | Deletes the specified file. |
/api/file | /wdelete/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{filename} | Deletes the specified file. |
/api/file | /wlist | List files in the root directory. |
/api/file | /wlist/{dir1} | List files in the directory depth 1. |
/api/file | /wlist/{dir1}/{dir2} | List files in the directory depth 2. |
/api/file | /wlist/{dir1}/{dir2}/{dir3} | List files in the directory depth 3. |
/api/file | /wlist/{dir1}/{dir2}/{dir3}/{dir4} | List files in the directory depth 4. |
/api/file | /wlist/{dir1}/{dir2}/{dir3}/{dir4}/{dir5} | List files in the directory depth 5. |
/delete/{path}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/delete/{dir1}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/delete/{dir1}/{dir2}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/delete/{dir1}/{dir2}/{dir3}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/delete/{dir1}/{dir2}/{dir3}/{dir4}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/delete/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/download/{filePath}
Function | Downloads the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/download/{dir1}/{fileName}
Function | Download the specified file. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/download/{dir1}/{dir2}/{fileName}
Function | Download the specified file. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/download/{dir1}/{dir2}/{dir3}/{fileName}
Function | Download the specified file. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/download/{dir1}/{dir2}/{dir3}/{dir4}/{fileName}
Function | Download the specified file. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/download/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{fileName}
Function | Download the specified file. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/downloadfolderchunk/{chunkIndex}/{folderPath}
Function | Downloads a chunk of a folder. |
---|---|
Method | Get |
Response | A representing the asynchronous operation. |
Example |
CODE
|
/downloadfolderchunk/{chunkIndex}/{dir1}/{folderName}
Function | Downloads the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/downloadfolderchunk/{chunkIndex}/{dir1}/{dir2}/{folderName}
Function | Downloads the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/downloadfolder/{folderName}
Function | Downloads the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/downloadfolder/{dir1}/{folderName}
Function | Downloads the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/downloadfolder/{dir1}/{dir2}/{folderName}
Function | Downloads the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/downloadfolder/{dir1}/{dir2}/{dir3}/{folderName}
Function | Downloads the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/downloadfolder/{dir1}/{dir2}/{dir3}/{dir4}/{folderName}
Function | Downloads the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/downloadfolder/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{folderName}
Function | Downloads the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/downloadthumbnail/{dir1}/{fileName}
Function | Download the specified thumbnail. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/downloadthumbnail/{dir1}/{dir2}/{fileName}
Function | Download the specified thumbnail. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/downloadthumbnail/{dir1}/{dir2}/{dir3}/{fileName}
Function | Download the specified thumbnail. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/downloadthumbnail/{dir1}/{dir2}/{dir3}/{dir4}/{fileName}
Function | Download the specified thumbnail. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/downloadthumbnail/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{fileName}
Function | Download the specified thumbnail. |
---|---|
Method | Get |
Response | True if the file file exists and was able to be retrieved. |
Example |
CODE
|
/downloadthumbnail/{fileName}
Function | Downloads the specified thumbnail. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/gallery
Function | A gallery view of files in the root directory. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/gallery/{dir1}
Function | A gallery view of files in the directory depth 1. |
---|---|
Method | Get |
Response | Directory 1. |
Example |
CODE
|
/gallery/{dir1}/{dir2}
Function | A gallery view of files in the directory depth 2. |
---|---|
Method | Get |
Response | Directory 2. |
Example |
CODE
|
/gallery/{dir1}/{dir2}/{dir3}
Function | A gallery view of files in the directory depth 3. |
---|---|
Method | Get |
Response | Directory 3. |
Example |
CODE
|
/gallery/{dir1}/{dir2}/{dir3}/{dir4}
Function | A gallery view of files in the directory depth 4. |
---|---|
Method | Get |
Response | Directory 4. |
Example |
CODE
|
/gallery/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}
Function | A gallery view of files in the directory depth 5. |
---|---|
Method | Get |
Response | Directory 5. |
Example |
CODE
|
/getfileinfo
Function | Get the specified file info. |
---|---|
Method | Post |
Body |
CODE
|
Response | A tuple containing the filename, last modified date time, and file size in bytes. |
Explanation | Using the command:
CODE
Take an image and get the output path. Insert the path/filename into the POST template to get the file information. The output would look like:
CODE
|
Example | Example 1
CODE
Output
CODE
|
/list
Function | List files in the root directory. |
---|---|
Method | Get |
Response | A list of the files in the specified directory. |
Example |
CODE
|
/list/{dir1}
Function | List files in the specified directory of depth 1. |
---|---|
Method | Get |
Response | Directory 1. |
Example |
CODE
|
/list/{dir1}/{dir2}
Function | List files in the specified directory of depth 2. |
---|---|
Method | Get |
Response | Directory 2. |
Example |
CODE
|
/list/{dir1}/{dir2}/{dir3}
Function | List files in the directory of depth 3. |
---|---|
Method | Get |
Response | Directory 3. |
Example |
CODE
|
/list/{dir1}/{dir2}/{dir3}/{dir4}
Function | List files in the directory of depth 4. |
---|---|
Method | Get |
Response | Directory 4. |
Example |
CODE
|
/list/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}
Function | List files in the directory of depth 5. |
---|---|
Method | Get |
Response | Directory 5. |
Example |
CODE
|
/wdelete/{path}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/wdelete/{dir1}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/wdelete/{dir1}/{dir2}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/wdelete/{dir1}/{dir2}/{dir3}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/wdelete/{dir1}/{dir2}/{dir3}/{dir4}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/wdelete/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{filename}
Function | Deletes the specified file. |
---|---|
Method | Get |
Response | True if the file exists and could be read. |
Example |
CODE
|
/wlist
Function | List files in the root directory. |
---|---|
Method | Get |
Response | Status code 200, for an completed operation being preformed. |
Example |
CODE
|
/wlist/{dir1}
Function | List files in the directory depth 1. |
---|---|
Method | Get |
Response | Directory 1. |
Example |
CODE
|
/wlist/{dir1}/{dir2}
Function | List files in the directory depth 2. |
---|---|
Method | Get |
Response | Directory 2. |
Example |
CODE
|
/wlist/{dir1}/{dir2}/{dir3}
Function | List files in the directory depth 3. |
---|---|
Method | Get |
Response | Directory 3. |
Example |
CODE
|
/wlist/{dir1}/{dir2}/{dir3}/{dir4}
Function | List files in the directory depth 4. |
---|---|
Method | Get |
Response | Directory 4. |
Example |
CODE
|
/wlist/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}
Function | List files in the directory depth 5. |
---|---|
Method | Get |
Response | Directory 5. |
Example |
CODE
|