# FileDTO

Type: object

Schema: [FileDTO](https://sourcey-gauzy.pages.dev/api-reference/models/filedto/index.md)

- `fieldname` (required)
  Type: string
  
  The field name associated with the file
  
  Example:
  
  ```json
  "videoFile"
  ```

- `key` (required)
  Type: string
  
  The file path or identifier of the video
  
  pattern: "/\\.(mp4)$/"
  
  Example:
  
  ```json
  "project-demo-2024.mp4"
  ```

- `originalname` (required)
  Type: string
  
  The original file name
  
  Example:
  
  ```json
  "project-demo-original.mp4"
  ```

- `size` (required)
  Type: number
  
  The size of the file in bytes
  
  Example:
  
  ```json
  10485760
  ```

- `encoding` (required)
  Type: string
  
  The file encoding (if available)
  
  Example:
  
  ```json
  "7bit"
  ```

- `mimetype` (required)
  Type: string
  
  The MIME type of the file (if available)
  
  Example:
  
  ```json
  "video/mp4"
  ```

- `filename` (required)
  Type: string
  
  The file name
  
  Example:
  
  ```json
  "project-demo-2024.mp4"
  ```

- `url` (required)
  Type: string
  
  The public URL of the file
  
  Example:
  
  ```json
  "https://example.com/project-demo-2024.mp4"
  ```

- `path` (required)
  Type: string
  
  The full path of the file
  
  Example:
  
  ```json
  "/uploads/project-demo-2024.mp4"
  ```