LogoLogo
  • Learner's Block
  • About us
    • Why we make the Learner's Block
    • How we are funded
  • How to build one
    • Quickstart
      • Picking hardware
      • Picking a Micro SD card and SD card reader
      • Picking a power supply
      • Picking a case
      • Installation
  • How to use it
    • Connecting to the Block
    • Setting the language
    • Setting your password
    • Enabling components
    • Adding content
    • Using the Application Store
    • Connecting to a Wi-Fi network (Optional)
    • Advanced Features
      • Checking the Remaining Space
      • Updating the Block
      • Using an ethernet connection
      • Automatically Opening Files
      • Changing the Default Loading Page
      • Changing the Wi-Fi SSID and URL
      • Using Portainer
      • Pruning System Files
      • Reset System Database
  • Library
    • What is the Library?
  • Contributing
    • How can I contribute?
  • Additional Info
    • Technical details
    • Security & Privacy
Powered by GitBook
On this page
Export as PDF
  1. How to use it
  2. Advanced Features

Automatically Opening Files

Specify a file to automatically open when a user accesses its folder through the File Manager.

When you upload content to your Block, such as a web application, it may include folders containing large numbers of files and sub-folders. When a user accesses the content through the File Manager they risk being confused by which file it is they should open to begin using the uploaded application.

An example would be a web application with an index.html or index.php file. Alongside those files will be many other files you will not need the user to see.

Therefore, your Block provides the ability to specify a file to automatically open when a user uses the file manager to access the folder which it is stored within. Prefix the file you would like to automatically open with the string:

--auto-open

Only users that are not logged in to the Control Panel will benefit from the automatic opening of files. This is so that an administrator logged in to the Control Panel is able to access the folder and change the files.

Here are a few examples:

--auto-open.jpeg --auto-open-my-original-filename.php --auto-open_anythinghere.html

It is important to keep the original file extension on the end of your file. Otherwise, your browser will not know how to open the file.

PreviousUsing an ethernet connectionNextChanging the Default Loading Page

Last updated 3 years ago