Skip to main content
GamePanelX provides a comprehensive file management system that allows you to browse directories, edit configuration files, upload files, and manage your server’s filesystem directly from the browser.

Accessing the File Manager

To access file management for a server:
1

Open Server Management

Click on a server from your server list
2

Navigate to Files Tab

Click the Files tab in the server management interface
3

Wait for Loading

The file list loads with a “Loading…” indicator

File Browser Interface

The file browser displays files and directories in a table format:

Table Columns

ColumnDescription
IconFile or folder icon (clickable)
NameFilename or directory name (clickable for editable files)
ModifiedLast modification date
AccessedLast access date
SizeFile size in bytes
DeleteDelete button for files
Directories and files are automatically sorted with directories appearing first, then files, both in alphabetical order.

Opening Folders

To navigate into a directory:
  • Click the folder icon
  • Or click the folder name link
The interface tracks your current directory path and displays it at the top:
Working Dir: /addons/sourcemod/configs

Going Back

To return to the parent directory:
  • Click the “Go Back” link at the top of the file list
  • The back button shows a left arrow icon
Your current directory is tracked in the session, so navigating between tabs and returning to the Files tab maintains your position.

Editing Files

Editable File Types

You can edit files with the following extensions:
  • .txt - Text files
  • .cfg - Configuration files
  • .rc - Runtime configuration
  • .log - Log files
  • .ini - INI configuration files
  • .inf - Information files
  • .vdf - Valve Data Format files
  • .yml - YAML files
  • .properties - Properties files
  • .json - JSON files
  • .conf - Configuration files

Editing Workflow

1

Open File

Click on an editable filename to open the editor
2

Edit Content

Modify the file content in the textarea editor
3

Save Changes

Click the Save button below the editor
4

Confirmation

Wait for the success confirmation in the info box

File Editor Features

- Large textarea with monospace font
- White-space preserved (pre-formatted)
- Full file content loaded
- Syntax preserved
- Auto-save on button click
When editing files, always make backups of important configurations. Invalid syntax in config files can prevent your server from starting.

Uploading Files

For local servers, file uploads are supported through an AJAX uploader.

Upload Interface

The upload widget appears at the top of the file browser:
  1. Click the upload area to select files
  2. Or drag and drop files onto the upload zone
  3. Files upload to the current directory automatically
  4. Progress indicators show upload status
File upload functionality is only available for local servers. Remote servers accessed via SSH/SFTP use different file transfer methods.

Upload Workflow

1

Navigate to Target Directory

Browse to where you want to upload files
2

Select Files

Click the upload widget and choose files
3

Wait for Upload

Files upload with progress indicator
4

Refresh View

Reload the directory to see new files

Creating Files and Directories

Creating a New File (Admin Only)

Administrators can create new files:
1

Click Add File

Click the “Add File” link at the bottom of the file list
2

Enter Details

A modal opens - enter the filename and content
3

Save

Click Save to create the file in the current directory
4

File Appears

The new file appears in the file list automatically

Creating a New Directory (Admin Only)

Administrators can create directories:
1

Click Add Directory

Click the “Add Directory” link at the bottom
2

Enter Name

Type the directory name in the modal prompt
3

Create

Click the create button
4

Directory Appears

The new folder appears in the file list
When creating files or directories, they are created in your current working directory. Navigate to the correct location first.

Deleting Files and Directories

Deleting Files

To delete a file:
1

Click Delete Icon

Click the red X icon in the Delete column
2

Confirm Deletion

A confirmation prompt appears asking “Are you sure?”
3

Confirm

Click OK to permanently delete the file
4

File Removed

The file row fades out and is removed from the list

Deleting Directories

Directories can only be deleted if they are empty:
  1. Navigate inside the directory
  2. Delete all files and subdirectories
  3. Go back to the parent directory
  4. When a directory is empty, a “Remove this directory” link appears
File and directory deletions are permanent and cannot be undone. Always verify before confirming deletion.

Local vs Remote File Access

GamePanelX handles files differently based on server location:

Local Servers

// Files accessed directly on the same machine
Path: /home/user/_SERVERS/accounts/username/ip.port/
Method: Direct filesystem access (PHP fopen/fread)
Features:
  - File uploads supported
  - Direct read/write
  - Fast operations

Remote Servers

// Files accessed via SSH/SFTP
Method: PHPSecLib (Pure-PHP SSH Implementation)
Features:
  - SFTP file listing
  - Remote file read/write
  - SSO (Single Sign-On) user authentication
  - Secure encrypted connections
Remote file operations use the server’s SSO credentials, ensuring users can only access files their system user has permissions for.

File Management Security

Path Validation

GamePanelX implements strict path validation:
  • Paths starting with . are rejected (prevents ../ traversal attacks)
  • Filenames are sanitized
  • Users can only access their own server directories
  • System checks network ID and user ownership

Permission Checks

// Every file operation verifies:
1. User is logged in
2. Server ID belongs to the user
3. Network permissions are correct
4. File paths are within allowed directories
5. SSO user has filesystem permissions

Working Directory Session

Your current directory is tracked in the PHP session:
$_SESSION['curdir']  // Stores current working directory
This allows:
  • Persistent navigation between page loads
  • Correct relative path resolution
  • File operations in the current directory
  • Back button functionality
If you get lost in the directory structure, navigate back to the Files tab to reset to the server’s root directory.

File Browser Actions Reference

AJAX Actions

All file operations use AJAX for seamless interaction:
ActionURL ParameterDescription
Load Directorya=file_load_dirList files in a directory
Save Contenta=file_actions&do=savecontentSave edited file
Delete Filea=file_actions&do=deleteRemove a file
Delete Directorya=file_actions&do=delete_dirRemove empty directory
Create Filea=file_actions&do=save_newfileCreate new file
Create Directorya=file_actions&do=create_newdirCreate new folder

Common File Management Tasks

Editing a Configuration File

1

Navigate to Config

Browse to your server’s config directory (often /cfg or /configs)
2

Open Config File

Click on the .cfg file you want to edit
3

Make Changes

Modify settings in the editor
4

Save and Restart

Save the file, then restart your server from the Info tab

Backing Up Configuration Files

1

Download Original

Use SFTP/FTP to download important files to your computer
2

Edit via Panel

Make changes through the web interface
3

Test Changes

Restart and verify server works correctly
4

Keep Backups

Maintain local copies of working configurations
The web file manager does not provide download functionality. Use external FTP/SFTP tools for backing up or downloading files.

Troubleshooting

Cannot Edit Files

  • Verify the file extension is in the editable list
  • Check if you have permissions for the Files tab
  • Ensure the server is not locked by another process

Permission Errors

  • Check that the system user has write permissions
  • Verify ownership of files (should match gameserver user)
  • Contact admin if filesystem permissions are incorrect

Files Not Appearing

  • Ensure you’re in the correct directory
  • Try going back and re-entering the folder
  • Check if files were created by a different user
  • Verify the server has completed installation

Next Steps

Console Access

Learn to use the server console and send commands

Server Settings

Configure server parameters and startup options

Build docs developers (and LLMs) love