File manager

Browsing, editing and uploading application files from the panel, and the sandbox boundaries it enforces.

8 min read20 sections

The Files tab is a full-featured browser-based file manager that lets you browse, create, edit, upload, download, move, copy, compress, and delete files on your server without needing an FTP client or SSH session. It works directly on the application's files on the server and scopes write access to the application's own directories for safety.

Getting here: Servers → select a server → Applications → select an application → Files.

1. Page layout

The file manager has three views: the main file browser (default), the code editor (when you open a file), and the read-only viewer (when you view a file). Switching between them replaces the main area; the toolbar and modals appear on top.

2. File browser

Toolbar

The grey toolbar at the top of the browser has two sections. The left section shows navigation and the current path; the right section shows action buttons.

ControlWhat it does
← (Back / Up) buttonNavigates up one directory level. Disabled when you are already at the root or the application root — you cannot navigate above the application's top directory.
Current path barShows the full absolute path of the directory you are currently viewing. Read-only display; hovering shows the full path in a tooltip if it is truncated.
ButtonWhat it doesWhen visible
Delete (bulk)Opens the delete confirmation modal for all selected itemsOnly when 1+ items are selected
Extract (bulk)Extracts the selected .zip or .tar.gz archiveOnly when exactly 1 archive is selected
Copy (bulk)Opens the copy modal for all selected itemsOnly when 1+ items are selected
Compress (bulk)Opens the compress modal for all selected itemsOnly when 1+ items are selected
Move (bulk)Opens the move modal for all selected itemsOnly when 1+ items are selected
Download (bulk)Downloads all selected items as a ZIP archive. Confirmation modal before download.Only when 1+ items are selected
Trash iconOpens the Trash panelAlways (for users with delete permission)
RefreshRe-fetches the current directory listing from the serverAlways
Fix Ownership (lock icon)Sets the correct owner and group write permissions so the app's FTP user and master user can manage the folder without needing rootOnly inside an application (when appid is set)
New FolderOpens the Create New Folder modalOnly when inside htdocs or private_htdocs
New File (blue)Opens the Create New File modalOnly when inside htdocs or private_htdocs
Upload (arrow up)Opens the Upload Files modalOnly when inside htdocs or private_htdocs

File listing table

![](https://api.sharkcluster.com/uploads/blog/blog-1793694310799.png)

ColumnWhat it shows
CheckboxSelects this item for bulk actions. The header checkbox selects or deselects all visible rows.
NameIcon plus name. Yellow folder icon for directories, grey document icon for files, blue link icon for symlinks. Symlinks show the target path after an → arrow. Clicking a folder navigates into it; clicking a file opens it in the code editor. Files currently being extracted or compressed show an animated status badge instead of their normal size.
SizeFile size formatted automatically as B, KB, MB, GB, or TB. Folders show 0 B. Files being compressed show an amber Compressing… badge; files being extracted show a purple Extracting… badge.
Last ModifiedModification timestamp. Shows "Today, HH:MM" for today's files; full date and time for older files.
PermissionsUnix permission string (e.g. 755). Inside writable directories this is a clickable button — click to open the Change Permissions modal. Outside writable directories it is shown as plain read-only text.
ActionsPer-row icon buttons for every operation available on that item. Only shown when you are inside a writable directory.

Sorting

Click the Name, Size, or Last Modified column headers to sort the file list by that column. Click again to toggle between ascending and descending order. A coloured arrow indicator shows the active sort column and direction.

Per-row action icons

IconActionAvailable for
Copy LinkCopies a shareable dashboard URL that opens the file manager at this file's exact pathAll items
View (eye)Opens the file in read-only mode in the Monaco code editorFiles only (not archives)
Edit (pencil)Opens the file in editable mode in the Monaco code editor. Shows a confirmation prompt for files in public/ or htdocs/ before opening.Files only (not archives)
RenameOpens the Rename Item modalAll items
MoveOpens the Move Files modal for this single itemAll items
CopyOpens the Copy Files modal for this single itemAll items
CompressOpens the Compress Files modal for this single itemAll items
ExtractOpens the Extract Archive modal.zip and .tar.gz files only
DownloadOpens the download confirmation modal. Folders are zipped before downloading.All items
Delete (trash)Opens the delete confirmation modal. Only visible for users with delete permission (not shared/team_member users).All items (with delete permission)

Write access scope

Write operations (create, edit, upload, rename, move, copy, compress, extract, delete, change permissions) are only available when you are inside htdocs or private_htdocs. When browsing outside those directories (e.g. the application root itself), the action column is hidden and the permissions column becomes read-only. Shared / team member users cannot delete even inside writable directories.

Drag and drop upload

You can drag files from your computer directly onto the file browser area to upload them to the current directory. The background changes to blue while a drag is in progress. Dropping starts the upload immediately using the same upload flow as the Upload button — no modal. An upload progress indicator appears in the bottom-right corner while files are being transferred.

3. Creating a folder

![](https://api.sharkcluster.com/uploads/blog/blog-1793694324875.png)

Click the New Folder icon in the toolbar to open the Create New Folder modal. Type the folder name and press Enter or click Create. The folder is created in the current directory. A full-screen loading overlay shows "Creating folder..." while the operation runs.

4. Creating a file

![](https://api.sharkcluster.com/uploads/blog/blog-1793694335095.png)

Click the New File (blue) icon in the toolbar. The Create New File modal has two fields: Location Path (pre-filled with the current directory, editable) and File Name. Enter the file name and press Enter or click Create. The file is created as an empty file at that path. An overlay shows "Creating file..." during the operation.

5. Viewing and editing files

![](https://api.sharkcluster.com/uploads/blog/blog-1793694345251.png)

View (read-only)

Click the eye icon on any file row to open it in a read-only Monaco code editor panel. The editor automatically detects the language from the file extension and applies syntax highlighting. The header shows the full file path. Click Close to return to the file browser.

Edit (read-write)

Click the pencil icon, or click directly on a file name in the table, to open the file in the editable Monaco code editor. Files inside public/ or htdocs/ show a confirmation prompt first — confirm to proceed or cancel to abort. The editor shows the full file path in the header.

Click Save to write the current editor content back to the server. The button shows "Saving..." while the request is in flight. An overlay shows "Saving file..." simultaneously. On success a toast confirms the save and the editor closes, returning you to the file browser. Click Cancel to close the editor without saving — unsaved changes are discarded.

6. Uploading files

![](https://api.sharkcluster.com/uploads/blog/blog-1793694355396.png)

Click the Upload icon in the toolbar to open the Upload Files modal. You can also drag and drop files directly onto the file browser for a quicker upload without opening the modal.

ControlDetails
Location PathPre-filled with the current directory. You can change it to an absolute path to upload to a different location.
Select FilesOpens the system file picker to choose one or more individual files.
Select FolderOpens the system folder picker to choose an entire folder. All files inside the folder are added to the upload queue, preserving the subdirectory structure on the server.
File queueLists all files staged for upload. Each item shows the relative path (webkitRelativePath for folder uploads) and an X button to remove it from the queue.
UploadStarts the upload. Files are uploaded one by one. An upload indicator in the bottom-right corner shows a progress bar and a warning not to close the page. A success toast fires when all files are done.

The upload progress indicator (bottom-right corner) appears as soon as uploading starts and shows a pulsing progress bar. It persists until all files in the queue have been transferred. Do not navigate away or close the tab while uploading — the upload runs sequentially and closing the page will interrupt it mid-queue.

7. Renaming

![](https://api.sharkcluster.com/uploads/blog/blog-1793694363015.png)

Click the rename icon on any row to open the Rename Item modal. The input is pre-filled with the current name. Change the name and press Enter or click Rename. If the new name is the same as the old name or is empty the operation is skipped. An overlay shows "Renaming..." while the operation runs.

8. Moving files

![](https://api.sharkcluster.com/uploads/blog/blog-1793694370503.png)

Click the move icon on a row, or select multiple items and click Move in the bulk toolbar, to open the Move Files modal. Enter the absolute destination path (e.g. /home/myapp/htdocs/assets) and click Move Here. If the destination is the same as the current path the operation is silently cancelled. An overlay shows "Moving files..." during the operation.

9. Copying files

![](https://api.sharkcluster.com/uploads/blog/blog-1793694377797.png)

Click the copy icon on a row, or use the bulk Copy button, to open the Copy Files modal. Enter the absolute destination path and click Copy Here. The destination must be different from the current path — an inline red error message appears if they match. An overlay shows "Copying files..." during the operation.

10. Compressing files

![](https://api.sharkcluster.com/uploads/blog/blog-1793694384212.png)

Click the compress icon on a row, or use the bulk Compress button, to open the Compress Files modal. For a single item, the Archive Name is pre-filled as <filename>.zip; for multiple selected items it uses the current folder name.

FieldDetails
Destination PathWhere the resulting archive will be saved. Required.
Archive NameThe name of the .zip file to create. Required.

Compression runs as a background task on the server. A loading toast fires immediately with the message "Compressing <name> in background… A notification will appear when completed." The file list refreshes every 5 polls (every ~10 seconds) so you can see the archive appearing in the directory. A success toast fires when the task completes. The file manager shows an animated amber Compressing… badge next to the archive name while the task is running.

11. Extracting archives

.zip and .tar.gz files have an extract icon in their action column. Click it (or select the archive and click Extract in the bulk toolbar) to open the Extract Archive modal.

FieldDetails
Destination PathWhere the extracted contents will be placed. Pre-filled with the current directory.
Output NameThe name of the folder the archive will be extracted into. Pre-filled with the archive name minus its extension (e.g. backup.zip → backup).

Like compression, extraction runs as a background task. A loading toast fires immediately. The file list refreshes every ~10 seconds so you can see the extracted folder appearing. A purple Extracting… badge shows on the folder row while it is being built. A success toast fires on completion.

12. Downloading

![](https://api.sharkcluster.com/uploads/blog/blog-1793694395555.png)

Click the download icon on any row to open a confirmation modal. Click Download to start:

  • Files are downloaded directly.
  • Folders are zipped on the server first and then downloaded as a .zip archive. A "Zipping folder..." toast appears while this runs.
  • For bulk downloads (multiple selected items), all items are packaged into a single .zip archive named after the current path. Confirm in the modal then click Download.

13. Deleting files

![](https://api.sharkcluster.com/uploads/blog/blog-1793694403772.png)

Click the delete icon on a row, or select items and click the bulk Delete button, to open the delete confirmation modal.

Move to Trash vs. Permanent Delete

The modal has a Move to Trash toggle (on by default). With the toggle on, files are moved to the server-side trash and can be restored later. With the toggle off, files are permanently deleted immediately and cannot be recovered. An additional red warning line appears when you turn the toggle off. Click the appropriate action button to confirm:

Toggle stateButton labelWhat happens
Move to Trash (on)Move to TrashFile/folder moves to the application's trash folder on the server. Recoverable.
Move to Trash (off)Yes, DeleteFile/folder is permanently deleted from the server immediately. Not recoverable.

14. Trash

![](https://api.sharkcluster.com/uploads/blog/blog-1793694493109.png)

Click the Trash icon in the toolbar to open the Trash panel (a modal overlay). The panel lists all files that were moved to trash for this application, with their original name, original path, and deletion timestamp.

ActionDetails
Restore (per item)Restores the file to its original path. A full-screen overlay shows "Restoring..." during the operation.
Delete Forever (per item)Opens the Permanent Delete confirmation modal for this single item.
Restore (N) (bulk)Select items using checkboxes then click Restore to restore all selected items at once.
Delete (N) (bulk)Select items then click Delete to permanently delete all selected items. Requires confirmation.
Empty TrashSelects all items in trash and opens the Permanent Delete confirmation modal to delete everything at once.

When the trash is empty, the panel shows a large greyed-out trash icon with the message "Trash is empty — Files moved to trash will appear here."

15. Changing permissions

Click the permission string (e.g. 755) on any row inside a writable directory to open the Change Permissions modal.

ControlDetails
Octal inputType a 3-digit octal value directly. Only digits 0–7 are accepted. Apply is disabled if the value is not a valid 3-digit octal.
CheckboxesThree rows (owner, group, others) each with Read, Write, Execute checkboxes. The octal value updates live as you check/uncheck boxes, and vice versa.
Quick presetsSix preset buttons: 644, 755, 775, 777, 600, 700. The active preset is highlighted. Click to apply instantly.

Click Apply to change the permissions on the server. An overlay shows "Changing permissions..." during the operation. The file list refreshes on success.

16. Fix Ownership

The Fix Ownership (lock) button in the toolbar sets the correct owner and group write permissions on the application's directory so that the app's FTP user and the master server user can both manage files without needing root access. This is useful after root-level operations (e.g. server-side package installs, git clones run as root) that leave files owned by root. Click the button and it shows an overlay "Setting folder ownership..." while the operation runs. A success toast confirms when the ownership has been updated. This button is only visible when the file manager is scoped to a specific application.

17. Error handling

All operations show error toasts on failure. Two specific error patterns are detected and given clearer messages:

Error patternMessage shown
Permission denied (EACCES, errno 13, operation not permitted)"Permission Denied: You do not have write permission in this folder. Please check directory ownership or permissions on the server."
Disk full (no space left on device, disk quota exceeded)"Disk Full: Not enough disk space on the server to complete this operation."

For other errors, if the error message from the server is longer than two lines, the toast shows the first line and a count of additional lines. For multi-line errors where the last line contains "error", "denied", or "failed", only that last line is shown as a concise summary.

18. Practical tips

  • You must be inside htdocs or private_htdocs to write files. Browsing the application root shows files in read-only mode. Navigate into htdocs to enable create, edit, upload, and delete actions.
  • Use Fix Ownership if you get permission denied after a git pull or server-side install. Root-level operations often change file ownership. Fix Ownership restores the correct owner so you can edit files again.
  • Use Move to Trash (default) rather than permanent delete. The toggle defaults to "Move to Trash" for a reason — trash gives you a recovery path. Switch to permanent delete only when you are certain you will not need the file again.
  • Compress and Extract run in the background. You do not need to stay on the page while a large archive is being built or unpacked. The file list refreshes automatically every ~10 seconds and a notification fires when done.
  • Use Copy Link to share a direct path to a file. The copied URL opens the file manager directly at the file's path — useful when asking a colleague to review a specific file.
  • Drag and drop for quick single-file uploads. Drop a file anywhere on the browser area to upload it to the current directory immediately, bypassing the modal.
  • Sort by Last Modified to find recently changed files. Click the Last Modified column header to find the file you just deployed or the config file that was last edited.
  • Use 644 for files and 755 for directories. These are the standard permission presets. 777 gives everyone write access and should be avoided on production servers unless absolutely necessary.

19. Common problems

ProblemLikely cause and fix
New Folder / New File buttons are not visibleYou are browsing outside htdocs or private_htdocs — navigate into the application's htdocs folder
Save / upload fails with Permission DeniedFile ownership is set to root after a server-side operation — click Fix Ownership in the toolbar and try again
Permission Denied even after Fix OwnershipThe specific file or subdirectory may still be root-owned — check permissions on the individual file using the permission column and correct them, or use the terminal
Compress or extract appears to hangThe task is running on the server in the background — wait for the completion toast; for very large archives this can take several minutes
Folder download is slow to startThe folder is being zipped on the server before the download begins — the "Zipping folder..." toast indicates this is in progress; wait for the browser's file save dialog to appear
File editor shows garbled contentThe file is binary (e.g. an image, a compiled binary) — binary files are not meant to be edited in the code editor; use the file browser to manage them
Restored file does not appear in the expected locationThe original path no longer exists — the file was restored to the trash folder instead; move it manually to the correct location
Bulk action buttons disappear mid-operationThe selection was cleared when the file list refreshed — re-select the items and try again
WhereScope
Files (this tab)Full file browser for the application's directory on the server — browse, edit, upload, download, move, copy, compress, extract, delete
Logs tabWeb server and PHP logs — use when an edited file causes a 500 error to read what went wrong without switching to a terminal
Processes tabAfter deploying updated code via the Files tab, restart the PM2 or custom service process here to pick up the new files
Domains tab → Virtual Host editorEdit the nginx/Apache virtual host config for a specific domain — a more targeted alternative to editing the vhost file directly in the file manager
Cronjobs tabIf you upload a new script file, add a cron job here to schedule it
Overview tabShows the application's Document Root — the base path that the file manager opens at for htdocs browsing

The Files tab is your server's file system, accessible from the browser. Use it for quick edits, deployments by file upload, config changes, archive management, and permission fixes — all without needing FTP credentials or an SSH session.

Something here not matching what you see in the panel?

Tell us
FAQ

Frequently Asked Questions

Answers to common questions about SharkCluster.

Contact Support

Write actions are only available inside htdocs or private_htdocs. Browsing the application root shows files read-only, so navigate into htdocs first.

Click Fix Ownership in the file manager toolbar. It restores the correct owner and group permissions on the application's directory, which root-level operations often change.

Yes, if Move to Trash was on, which is the default. Open the Trash panel and restore the file to its original path; files deleted with the toggle off are gone permanently.

Yes. The application's Files tab is a browser-based file manager for browsing, editing, uploading, downloading, moving, compressing and deleting files, with a code editor for editing.

Start your journey today

How do you start
with SharkCluster?

To start with SharkCluster, create an account and your first server on DigitalOcean, Contabo or OVHcloud — no credit card or lock-in contract is needed. Every account includes free self-hosted business apps, free local backups, unlimited migrations and a dedicated DevOps manager.

No lock-in contracts
No credit card required
Dedicated DevOps manager