Accessing the File Manager
To access file management for a server:File Browser Interface
The file browser displays files and directories in a table format:Table Columns
| Column | Description |
|---|---|
| Icon | File or folder icon (clickable) |
| Name | Filename or directory name (clickable for editable files) |
| Modified | Last modification date |
| Accessed | Last access date |
| Size | File size in bytes |
| Delete | Delete button for files |
Directories and files are automatically sorted with directories appearing first, then files, both in alphabetical order.
Navigating Directories
Opening Folders
To navigate into a directory:- Click the folder icon
- Or click the folder name link
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
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
File Editor Features
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:- Click the upload area to select files
- Or drag and drop files onto the upload zone
- Files upload to the current directory automatically
- 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
Creating Files and Directories
Creating a New File (Admin Only)
Administrators can create new files:Creating a New Directory (Admin Only)
Administrators can create directories:Deleting Files and Directories
Deleting Files
To delete a file:Deleting Directories
Directories can only be deleted if they are empty:- Navigate inside the directory
- Delete all files and subdirectories
- Go back to the parent directory
- When a directory is empty, a “Remove this directory” link appears
Local vs Remote File Access
GamePanelX handles files differently based on server location:Local Servers
Remote Servers
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
Working Directory Session
Your current directory is tracked in the PHP session:- Persistent navigation between page loads
- Correct relative path resolution
- File operations in the current directory
- Back button functionality
File Browser Actions Reference
AJAX Actions
All file operations use AJAX for seamless interaction:| Action | URL Parameter | Description |
|---|---|---|
| Load Directory | a=file_load_dir | List files in a directory |
| Save Content | a=file_actions&do=savecontent | Save edited file |
| Delete File | a=file_actions&do=delete | Remove a file |
| Delete Directory | a=file_actions&do=delete_dir | Remove empty directory |
| Create File | a=file_actions&do=save_newfile | Create new file |
| Create Directory | a=file_actions&do=create_newdir | Create new folder |
Common File Management Tasks
Editing a Configuration File
Backing Up Configuration 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