1. Tasks
  2. Get File Details

Tasks

Get File Details

The Get File Details task retrieves file information for a file from the Stubber file system.

Basic usage

{
tasktype
:
get_file_details
params
:
{
fileuuid
:
uuid of file to get details about

Parameters

fileuuid
optional
string

The UUID of the file to be get details about.


fileuuids
optional
array

An array of UUIDs of the files to get the details about.


Result

{
success
:
true
payload
:
{
file_details
:
[
1 item  
0
:
{
contentType
:
content type of file
encoding
:
encoding of the file
filename
:
name of the file
fileuuid
:
uuid of the file
upload_date
:
upload_date of the file
size
:
size of the file

Properties

fileuuid

integer

The UUID of the file.

encoding

string

The encoding of the file.

filename

string

The name of the file.

upload_date

date

The upload date and time of the file in the ISO 8601 format: YYYY-MM-DDTHH:mm:ss.sssZ. For example: 2025-05-08T13:06:23.307Z.

size

integer

The size of the file


Examples

Request with mutiple fileuuids

{
tasktype
:
get_file_details
params
:
{
fileuuids
:
[
4 items  
0
:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
1
:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
2
:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
3
:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx