---
title: "file Methods  HTML5/Flash Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/FH_Methods_T_J_$au_file.htm
product: "Upload Suite 8"
---

# file Methods HTML5/Flash Uploader JavaScript
 
The [file](https://www.aurigma.com/docs/us8/FH_T_J_$au_file.htm.md) type exposes the following methods.

## Methods
 
|   | Name | Description |
| --- | --- | --- |
 |  ![Public method](https://www.aurigma.com/docs/us8/icons/pubmethod.gif) |  [calculateHash(Function)](https://www.aurigma.com/docs/us8/FH_M_J_$au_file_calculateHash_1_23cf0bd7.htm.md) |  Calculates MD5 hash for a file. |
 |  ![Public method](https://www.aurigma.com/docs/us8/icons/pubmethod.gif) |  [exif(Function)](https://www.aurigma.com/docs/us8/FH_M_J_$au_file_exif_1_23cf0bd7.htm.md) |  Gets a collection of EXIF fields of a file. |
 |  ![Public method](https://www.aurigma.com/docs/us8/icons/pubmethod.gif) |  [getPreview(Object)](https://www.aurigma.com/docs/us8/FH_M_J_$au_file_getPreview_1_8419e710.htm.md) |  Receives an `img` element of containing the preview of a file. |
 |  ![Public method](https://www.aurigma.com/docs/us8/icons/pubmethod.gif) |  [iptc(Function)](https://www.aurigma.com/docs/us8/FH_M_J_$au_file_iptc_1_23cf0bd7.htm.md) |  Gets a collection of EXIF fields of a file. |
 |  ![Public method](https://www.aurigma.com/docs/us8/icons/pubmethod.gif) |  [remove](https://www.aurigma.com/docs/us8/FH_M_J_$au_file_remove.htm.md) |  Removes the user-selected files from the upload pane. |
 |  ![Public method](https://www.aurigma.com/docs/us8/icons/pubmethod.gif) |  [showImageEditor(Number,Number)](https://www.aurigma.com/docs/us8/FH_M_J_$au_file_showImageEditor_2_3705d439.htm.md) |  Opens a file in the built-in image editor. |
