# JSFileUpload

## Overview

The `JSFileUpload` class is designed to represent and manage files in the context of an upload process. It provides methods to access key file properties, such as size, name, content type, and the last modified time. The class encapsulates a `File` object and its associated metadata, offering a straightforward interface for working with file data in Java applications.

By implementing the `IUploadData`, `IJavaScriptType`, and `IFile` interfaces, it facilitates integration with file handling systems, supporting features such as byte retrieval and input stream access. It also handles exceptions gracefully, ensuring that file data is retrieved securely, even if the file cannot be found or read.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servoy.com/reference/servoyextensions/server-plugins/http/jsfileupload.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
