Public Files Explorer Help

GitHub Repository Integration

The Public Files Explorer can now fetch files directly from a GitHub repository. This is useful when you want to display files from a repository without having to deploy them with your application.

How it works:

  1. Toggle the "Use GitHub Repository" switch at the top of the explorer
  2. The explorer will fetch files from the Jamal0602/files repository's public folder
  3. You can browse, preview, and download files directly from GitHub
  4. The GitHub icon button allows you to view the file on GitHub

Note: GitHub has rate limits for API requests. If you encounter errors, try switching back to local files or wait a few minutes before trying again.

Adding Files to the Public Folder

To make files appear in the Public Files Explorer when using local files, you need to add them to the public folder in your project.

Steps:

  1. Navigate to your project's root directory
  2. Find or create the public folder
  3. Add your files to this folder or any subfolder within it
  4. Rebuild your application or refresh the explorer

Example folder structure:

your-project/
├── public/
│   ├── images/
│   │   ├── logo.png
│   │   └── banner.jpg
│   ├── documents/
│   │   └── guide.pdf
│   └── data.json
└── ... (other project files)

After Deployment

When your application is deployed, you have two options for displaying files:

  1. GitHub Repository: Toggle on "Use GitHub Repository" to fetch files from GitHub
  2. Local Files: When using local files, a manifest is generated during the build process

Note: When using local files, the file explorer reads from a manifest generated at build time. Files added after deployment won't appear until the next build.