http_file_transfer_server 0.0.2
http_file_transfer_server: ^0.0.2 copied to clipboard
A simple HTTP file transfer server for Flutter apps. Upload, download, and manage media files with built-in web interface and BLoC integration.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Unreleased #
0.0.2 - 2024-11-29 #
Changed #
- Updated dependencies to latest versions for improved Flutter compatibility:
device_info_plus: ^11.3.0 → ^12.3.0 (improved device detection)mime: ^1.0.6 → ^2.0.0 (enhanced MIME type support)path: ^1.9.0 → ^1.9.1 (bug fixes and improvements)flutter_bloc: ^8.0.1 → ^9.1.1 (latest BLoC pattern improvements)
- Enhanced compatibility with latest Flutter versions
- Improved performance and stability
0.0.1 - 2024-11-22 #
Added #
- Initial release of HTTP File Transfer Server package
- Core HTTP server functionality for file transfer operations
- Web interface with drag & drop file upload support
- File management with upload, download, and delete operations
- Support for audio and video file formats:
- Audio: MP3, WAV, FLAC, AAC, OGG, M4A, WMA
- Video: MP4, AVI, MOV, MKV, FLV, WMV, WEBM
- BLoC pattern integration with
ProcessCubitfor state management - Automatic directory scanning for existing files on app startup
- Real-time file synchronization between server and UI
- Configurable maximum file size limits
- Automatic device name detection
- Local network IP detection for server access
- Built-in web assets (HTML, CSS, JavaScript)
- Binary file serving support (PNG, JPG, GIF, SVG, ICO)
- RESTful API endpoints:
GET /- Web interfacePOST /upload- Upload file (multipart/form-data)GET /list- File list (JSON)GET /download?path=xxx- Download fileGET /remove?path=xxx- Delete file
- Complete example application demonstrating usage
- Comprehensive documentation and README
Features #
- Simple and clean API without delegate pattern complexity
- Cross-platform support (Android, iOS, Windows, macOS, Linux)
- Automatic file type detection and categorization
- Progress tracking for file operations
- Error handling and status reporting
- Persistent file list across server restarts
- Web interface with responsive design
- Platform-specific device name integration
Dependencies #
flutter: SDK dependencydevice_info_plus: ^11.3.0: Device information detectionnetwork_info_plus: ^7.0.0: Network IP address detectionmime: ^1.0.6: MIME type detection for filespath: ^1.9.0: Path manipulation utilitiesflutter_bloc: ^8.0.1: State management with BLoC pattern
Technical Details #
- Minimum Flutter version: 1.17.0
- Dart SDK: ^3.6.2
- Uses material design components
- Asset bundle integration for web interface
- HTTP server with multipart form data support
- JSON API responses
- File system integration with automatic directory creation