A web application that allows you to upload files and generate QR codes for easy transfer to other devices.
- Upload files of various types (PDF, images, documents, etc.)
- Generate QR codes for direct download
- Mobile-friendly interface
- Secure file sharing
- Python 3.7+
- pip (Python package installer)
- Clone or download this repository
- Install the required packages:
pip install -r requirements.txtOr install manually:
pip install Flask qrcode[pil] Pillow- Run the application:
python app.py- Open your browser and navigate to
http://localhost:5001(or the port shown in the terminal) - Select a file to upload
- After upload, scan the generated QR code with your mobile device to download the file
- Alternatively, copy the link and share it with others
- You upload a file through the web interface
- The server generates a unique URL for that file
- A QR code is created containing the download link
- Other devices can scan this QR code to access and download the file
- Files are stored temporarily on the server until manually removed
- File names are randomized to prevent guessing
- Only those with the QR code or link can access the files
- Files are stored in the
uploadsdirectory
Currently set to "None" to allow all file types but can be modified to restrict file types by adding them to line 14 ALLOWED_EXTENSIONS in app.py
For example: ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif', 'zip', 'rar', 'doc', 'docx'}
- Documents: PDF, DOC, DOCX, etc
- Images: PNG, JPG, JPEG, GIF
- Archives: ZIP, RAR
- Text files: TXT
- Video files: MP4, MKV
app.py: Main Flask applicationtemplates/index.html: Main page templatetemplates/receive.html: File download page templatestatic/style.css: Styling for the applicationuploads/: Directory where uploaded files are stored (created automatically)
This project is available under the MIT License.