> ## Documentation Index
> Fetch the complete documentation index at: https://wiki.daki.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# File Manager

> How to upload, manage, and edit your server files using the Portal's built-in file manager or SFTP.

The **Files** tab in the <Tooltip tip="Daki's Pterodactyl-based server-management panel (portal.daki.cc).">Portal</Tooltip> gives you browser-based access to your server's filesystem. You can upload files, create directories, edit files in a web editor, and extract archives — all without leaving the browser. For larger transfers, <Tooltip tip="Secure File Transfer Protocol — upload/download files with no size limits.">SFTP</Tooltip> is also available.

## What you'll learn

* How to navigate and manage files
* How to upload files (and how to handle the folder limitation)
* How to create and edit files in the browser
* How to use SFTP for unrestricted access

***

## Navigating Files

The file manager shows your server's directory tree. Click folders to enter them, and click any text file to open it in the built-in web editor.

***

## Uploading Files

Click **Upload** to upload one or more files from your computer. Files land in the currently open directory.

<Info>
  The web file manager has an upload size limit per file. For large files or many files at once, use SFTP instead (see the section below).
</Info>

***

## Uploading Folders

Direct folder upload is **not supported** in the web file manager. Use one of these workarounds:

### Option 1: Upload an archive (quickest)

1. Compress your folder on your computer into a `.zip` or `.tar.gz` file.
2. Upload the archive using the **Upload** button.
3. Right-click the archive in the file manager and select **Extract** to unpack it on the server.

### Option 2: Use SFTP (no size limits)

SFTP lets you upload entire folder trees with no browser restrictions. See the SFTP section below.

***

## Creating and Editing Files

| Action                | How                                                              |
| :-------------------- | :--------------------------------------------------------------- |
| Create a new file     | Click **New File**                                               |
| Edit an existing file | Click the file to open it in the web editor, then click **Save** |
| Create a directory    | Click **New Directory**                                          |
| Rename or delete      | Right-click a file or folder to access these options             |

***

## Archive Operations

* **Extract:** Upload a `.zip` or `.tar.gz`, right-click it, and select **Extract** to unpack it in place.
* **Compress:** Select files or folders and use the archive option to create a `.zip`.

***

## Using SFTP

SFTP gives you direct, unrestricted filesystem access from a desktop client.

### Getting your SFTP details

1. In the Portal, open your server and go to the **Settings** tab.
2. Find the **SFTP Details** section:
   * **Host** — the SFTP server address
   * **Port** — typically 2022
   * **Username** — your Portal username
3. Use your Portal account password as the SFTP password.

### Recommended SFTP clients

| Client    | Platform                   |
| :-------- | :------------------------- |
| FileZilla | Windows, Mac, Linux (free) |
| WinSCP    | Windows (free)             |
| Cyberduck | Mac, Windows (free)        |
| `sftp`    | Any terminal               |

### What SFTP lets you do

* Upload entire folder trees in one transfer
* Transfer large files without hitting browser limits
* Manage files efficiently from your desktop environment

***

## Tips

* Stop your server before uploading a replacement version of your application to avoid file conflicts.
* Use the web editor for quick one-file edits; use SFTP for initial project setup or large uploads.
* Keep an external copy of your code (e.g., on GitHub), especially on the Free Tier where deleted files cannot be recovered.

***

## Next Steps

* [Startup Settings](./startup-settings) — Configure your server's startup command after uploading your files.
* [Environment Variables](./environment-variables) — Set your bot token and other configuration values.
* [Console & Power Actions](./console) — Start your server and check the output.
