media_link_generator 1.0.2
media_link_generator: ^1.0.2 copied to clipboard
Upload any file type and get instant shareable links. Free cloud storage alternative to Firebase Storage with encryption support, chunked uploads for large files, and progress tracking.
Changelog #
1.0.0 - 2024-12-11 #
Added #
- Major update with complete rewrite for better API compatibility
MediaLinksingleton client for easy API accessuploadFile()- Multipart file upload for small filesuploadBytes()- Upload from bytes/memory (web compatible)uploadLargeFile()- Chunked upload for large files (5MB+)uploadLargeFileBase64()- Chunked Base64 upload for webupload()- Smart upload that auto-selects best methoddeleteFile()- Delete files by linkgenerateToken()- Generate API token by emailsetToken()- Set API token manuallyMediaLinkConfig- Customizable configuration- Progress tracking with
ProgressCallback - Proper error handling and response models
- Full null safety support
- Comprehensive documentation and examples
dbFolderIdparameter for database folder organization
Changed #
- Updated API endpoints to match current backend
- Improved error handling with detailed messages
- Added MIME type detection for uploads
- Singleton pattern for easy global access
Deprecated #
uploadSimpleFile()- UseuploadFile()insteaduploadFileInBytes()- UseuploadBytes()insteadgenerateTokenByEmail()- UsegenerateToken()instead
Fixed #
- Correct API endpoint URLs
- Proper multipart form field names
- JSON body structure for Base64 uploads
0.0.4 Previous versions #
- Initial releases with basic functionality
