---
title: "Deploy File Server"
description: "An open-source easy to use file server. Uses the local-filesystem or S3"
category: "Storage"
url: https://railway.com/deploy/rZ3A8i
---

# Deploy File Server

An open-source easy to use file server. Uses the local-filesystem or S3

**[Deploy File Server on Railway](https://railway.com/template/rZ3A8i)**

- **Creator:** Team Lasse
- **Category:** Storage
- **Total deploys:** 75

## Template content

### File Server https://vault.file0.io/u/01961205-a344-7000-bd43-b9fe41d949c8/uploads/0196c39a-c65a-7000-bf94-c33f1eabfee1.svg

- **Image:** ghcr.io/lassejlv/file-server:latest
- **Public domain:** Yes

## Buckets

- **Files Bucket**

## Documentation

# 📁 File Server

A fast, simple solution for uploading and sharing files. Works with both local file system and S3 storage.

## 📋 API Reference

### Upload a File
POST /upload
**Request Format:** multipart/form-data  
**Required Field:** file: 

### Retrieve a File
GET /files/uploads/
Where  is the unique identifier of your uploaded file.

### To use s3 set the following env variables

```bash
S3_ENDPOINT=
S3_BUCKET=
S3_REGION=
S3_ACCESS_KEY_ID=
S3_SECRET_ACCESS_KEY=
```

And update the `FILE_SERVER_STORAGE_TYPE` from **local** to **s3**

### Allow all file types
If you wanna allow all file types update the `FILE_SERVER_ALLOWED_FILE_TYPES` to *

## ✨ Features
- Quick and easy file uploads
- Simple file sharing
- Flexible storage options
- Minimalist design


## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/rZ3A8i
