---
title: FileMetadata
---

# FileMetadata

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/file-storage/src/lib/file-storage.ts#L117" target="_blank">View Source</a>

## Summary

Metadata about a file in storage.

## Signature

```ts
interface FileMetadata {
  key: string;
  lastModified: number;
  name: string;
  size: number;
  type: string;
}

```

## Properties

### key

The key of the file in storage.

### lastModified

The last modified time of the file (in ms since the Unix epoch).

### name

The name of the file.

### size

The size of the file in bytes.

### type

The MIME type of the file.