WiFile
A file explorer that works over local area network (Wi-Fi/Ethernet) using Flask server. You can explore a computer's complete directory and download any file. Moreover, it also lets you stream videos or audio files if your browser supports it.
New Features π
- Significant performance improvements - incorporated jinja for dynamic output generation π₯
- Added QR Code Sharing - share files using QR codes π²
- Folder Breadcrumbs - easily navigate back and forth between folders π
Description
Server works on,
- Windows
- Mac
- Linux (Tested on Ubuntu 18.04)
It is written in Python and tested it on Mac and Windows.
Frameworks
- Flask (Server)
- Bootstrap 4
Flask has been used to run the server and serve up the html pages. Meanwhile, Bootstrap has been used to show the Folders and the Files. To open any folder, just click on it and to download/stream any file, just click on it.
Snapshots
How to Run
Clone this repository by using,
git clone https://github.com/reallyrehan/flask-fileexplorer.git
Make sure you have flask installed. You can use the following command to install flask,
pip install -r requirements.txt
Now, open terminal/command prompt in the flask-fileexplorer directory and run the setup.py file by using the following command,
python setup.py
You will have to configure the config.json file with your paths,
Example for Mac,
"Favorites": ["Users/rehanahmed/Downloads","Users/rehanahmed/Documents"],
Example for Windows,
"Favorites": ["C://Users//Administrator//Documents","C://Users//Administrator//Downloads"],
This should start the Flask Server in your terminal window. By default, it is run on port 80. You can access it by going to,
- localhost (on your server's browser)
- (IP Address of your Server) (from any other browser on the same network)
For additional features,
- Password Protection: Set a password in the config.json file.
- Hiding Folders: Add paths of folders to hide in the config.json file as a list.
- Favorite Folders: Add paths to add as favorites in the config.json file as a list.
- Share only Specific Folder: Give a path to the Root Directory or leave it as default '/' to share the complete computer directory.
Issues
- Change File icons
- Implement Video Streaming Works Already
- Implement Back/Forward Button
- Upload Button
- Add Upload to specific folders
- Add Download Folder option (Zip folder)
- Add Security Features Added Hiding ()
- change to setup.py
- Remove inline css to separate css file Partially
- Add Favorites
- Fix Mobile CSS
- File drop to upload
- Share only specific folder
- Take path from command line
- Add How to find IP Address (ISSUE)
- Test on Linux
- Test on Windows
- Test on Mac
- Add Error Handling
- Add Login Page Current Directory and Password
- Add Hidden Validation
- Add Favorites Validation
- Add Upload Validation
- ISSUE: Favorites doesnt work with Limited Directory Usage
- Add Breadcrumb path
- Add a proper Config file for all configrations hidden, favorites, login
- Add Exit Button
- Describe how to get your own IP address for Mac, Windows, Linux
- Add username and create a log file to track accesses and each executed instruction
- Add option for selecting available Drives
- Add requirements.txt
- Better Security
- QR Code File Download
- Performance Improvement by converting Python directory+file code to Jinja
Support Me
Like my work? Click on the button below and help me keep caffeinated! βοΈ ππ»