Files
Upload, edit and organize your website's files with the file manager, FTP accounts or Web Disk, and keep an eye on your disk space.
Your website's files live in its own folder on the server. ScalPanel gives you three ways to work with them:
- the File manager in your browser, for quick changes;
- FTP accounts, for FTP programs such as FileZilla;
- Web Disk, which opens the files on your computer like a network drive.
You can also use SFTP with an SSH key. See Websites.
Where your files are
Each website has its own folder. Inside it, the **public** folder is the web root: what visitors see. A file at public/about.html is at https://your-domain/about.html.
Files outside public, such as configuration files, are not reachable from the web. All changes are made as the website's own user, so your applications can read and write the files.
Use the file manager
- Open Website → File manager.
- Choose the Website if you have more than one.
- Click a folder to open it. Use Up to go back one folder and Refresh to reload.
Turn on Show hidden files (dotfiles) to see files such as .htaccess. The choice is remembered in your browser.
The website's folders are listed on the left. Click a folder to list it on the right; the arrow beside a folder opens or closes it. On a narrow screen the folders are above the list.
Drag and drop. Drag a file or folder from the list onto a folder (in the list, in the folders on the left, or in the path above the list). The panel asks whether to Move here or Copy here. Tick boxes first to drag several items at once. A folder cannot go into itself. Files dragged from your computer onto the list are uploaded, as before.
Upload files
- Open the folder you want.
- Click Upload and choose one or more files.
- Watch the progress in Uploads. If a file with the same name exists, you are asked whether to replace it.
Each file can be up to 256 MiB. For larger files, use FTP, Web Disk or SFTP.
Create and edit files
- New file and New folder create an empty file or folder in the current folder.
- Click Edit next to a text file to change it in the browser. Save when you are done; if you close with unsaved changes, the panel asks first.
- Files over 2 MiB, and files that are not text, cannot be edited in the browser. Click Download, edit the file on your computer and upload it again.
More actions
Each row has a More actions menu:
| Action | What it does |
|---|---|
| Extract… | Unpacks a .zip, .tar.gz/.tgz or .tar archive |
| Scale or convert… | Resizes an image or changes its format |
| Make thumbnails… | Makes small copies of every image in a folder |
| Copy… | Copies a file or folder |
| Rename or move | Gives an item a new name or path |
| Permissions | Changes the permissions (for example 644) |
| Delete | Deletes the item |
To work on many items at once, tick their boxes and use Move, Copy, Compress or Delete selected above the list.
Warning: Deleting files cannot be undone in the file manager. You can get files back from the automatic backups. See Backups.
Archives
- Compress packs the selected items into a
.zip,.tar.gzor.tarfile in the current folder. - Export packs the current folder, or the whole website, into a
.tar.gzyou can download. Your exports are listed under Exports and are deleted 7 days after they are made. - Long file actions stop after about 40 seconds. Very large archives may need SSH.
Search
Use the search box to find files and folders whose name contains a word. It searches the current folder and every folder below it.
Links
The file manager shows symbolic links with their target but never follows them. Renaming or deleting a link changes only the link, not what it points to.
Edit images
The file manager can resize and convert JPEG, PNG and GIF images. Images over 64 MiB are refused.
Scale or convert an image:
- Open More actions next to the image and choose Scale or convert….
- Under Change, choose The size (scale) or Only the format (convert).
- For scaling, enter Width (pixels) or Height (pixels). Leave one empty to keep the proportions.
- Enter a name under Save as. The new file is saved in the same folder; the original stays.
Make thumbnails:
- Open More actions next to a folder and choose Make thumbnails….
- Enter Size (percent of each image), from 1 to 100.
- The thumbnails are saved in a
thumbnailsfolder, namedtn_<name>. At most 200 images are processed per folder.
FTP accounts
An FTP account is a separate login for an FTP program. It has its own password and is locked inside one folder of a website.
There is no sidebar entry for FTP accounts. Open the search with Ctrl+K (or ⌘K on a Mac) and type FTP accounts.
- Choose the Website.
- Click Add an account.
- Enter a Username (unique on the server) and a Password of 12 to 72 characters.
- Enter the Folder:
publicfor the web root, or leave it empty for all of the website's files. The folder must already exist. - Click Add account.
The Connect your FTP program card shows the Host, Port, Protocol and Username. In FileZilla, choose "Require explicit FTP over TLS". Your provider may refuse plain FTP, because it sends your password unencrypted.
Note: Your provider decides whether FTP is offered. If the page says the FTP server is turned off, your accounts start working once it is on. SFTP and Web Disk work in the meantime.
Web Disk
Web Disk opens a website's files on your computer like a network drive, so you can drag files in and out. It uses an encrypted connection (WebDAV over TLS).
Open the search (Ctrl+K) and type Web Disk.
- Choose the Website and click Add an account.
- Enter a Username and a Password of at least 12 characters.
- Enter the Folder it opens:
publicfor the web root, or empty for all files. - Tick Read only if the account should only open and copy files, not change or delete them.
- Click Add account.
Copy the Address from the Connect your computer card, then:
- Windows: File Explorer → This PC → "Map network drive" → paste the address.
- macOS: Finder → Go → "Connect to Server" (⌘K) → paste the address.
- Linux: in the file manager, "Connect to Server" with the
davs://address shown.
When you change an account's password, connected computers must sign in again.
Disk usage
Your plan has a disk quota. To see how much you use:
- Open Tools → Statistics → Resource usage.
- The Disk space card shows your total use against your quota, with Disk usage per website and Disk usage per database.
The Overview page also shows Disk quota used.
- Website files and MariaDB databases count toward the quota. Mailboxes have their own quotas and are shown on the Email page.
- Sizes are measured regularly, not live; the card shows when each was measured.
- An alert fires at 90 % of the quota and again when it is used up. See it on Tools → Statistics → Alerts.
- When the quota is used up, the panel refuses uploads, new folders and other changes that add data. Delete files you do not need, or ask your provider for a larger plan.