FilemanagerFiles
Introduction
FileManagerFiles represent a File on the filesystem. FileManagerFiles will always attach an url to a File.
There is no direct relation to a FilemanagerDirectory. The resolution of files and directories is done by their path property.
A file can be saved on any path. If there are no FilemanagerDirectories added which represent the sections of the path, the according FilemanagerDirectories will be created.
Model Definition
Alias
filemanagerFile
Relations
Computed Properties
hash- The hashedidof theFilemanagerFilename- The basename of theFilemanagerFileurl- Encoded URL to the underlying file
Traits
SoftDeletes
List
Get a list of all FilemanagerFiles the current authenticated User is allowed to view.
You can use the filters matches_path and matches_path_recursive on routes of this module. However, the response time of the list action can be considerably high because of recursive permission handling. You might want to use the list by path action for tasks regarding a specific path.
Definition
GET /api/filemanager/files
Example Request
Example Response
List by path
Get a list of all FilemanagerFiles by given {path} the current authenticated User is allowed to view.
If you don't pass a value for {path} a call to the root folder will be assumed.
Definition
GET /api/filemanager/files/path/{path}
Example Request
Example Response
Count
Get the count of all FilemanagerFiles the current authenticated User is allowed to view.
Definition
GET /api/filemanager/files/count
Example Request
Example Response
Show
Show a single FilemanagerFile by id.
Definition
GET /api/filemanager/files/{id}
Example Request
Example Response
Create
Create a new FilemanagerFile.
Definition
POST /api/filemanager/files
Request Keys
file *
file
-
The File to be uploaded
path *
string
-
Relative path to the FilemanagerFile (normalized to include leading /)
Keys with * are required.
Example Request
Example Response
Update
Update an existing FilemanagerFile by id.
Definition
PUT /api/filemanager/files/{id}
Request Keys
file
file
The File to be uploaded
path
string
Relative path to the FilemanagerFile (normalized to include leading /)
Example Request
Example Response
Delete
Delete an existing FilemanagerFile by id.
Definition
DELETE /api/filemanager/files/{id}
Example Request
Example Response
Last updated