Skip to content

fahadai-dev/file-upload-api-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ File Upload & Download API Secure file upload/download system with Flask.

✨ Features βœ… Single & multiple file upload βœ… File type validation βœ… Size limit (configurable) βœ… Unique filename generation βœ… Download & preview βœ… File listing & deletion βœ… Path traversal protection πŸš€ Quick Start pip install flask werkzeug python app.py πŸ“‘ API Endpoints Upload:

POST /upload Form-data: file = your_file.jpg List Files:

GET /files Download:

GET /download/filename.jpg Delete:

DELETE /delete/filename.jpg βš™οΈ Configuration UPLOAD_FOLDER = "uploads" MAX_FILE_SIZE = 5 * 1024 * 1024 # 5MB ALLOWED_EXTENSIONS = {'png', 'jpg', 'pdf'} πŸ’» Tech Stack Python Flask Secure file handling πŸ“« Contact fahad.integration.ml@gmail.com

About

Secure file upload/download REST API with Flask, Supports multiple files, validation and authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages