v1.3.2
Add file upload plugin and fix header parsing in C++ bridge
Summary
Implemented a new file upload plugin in Rust and fixed critical header parsing issue in the C++ bridge.
Changes
-
Rust Upload Plugin:
- Created
uploadplugin for handling multipart file uploads - Saves uploaded files to configurable temp directory
- Adds upload metadata to request headers for JS callback processing
- Created
-
TypeScript Types:
- Added
UploadMountinterface and integrated intoMountableunion type - Updated TypeScript definitions to support new plugin type
- Added
-
Documentation Updates:
- Updated README files with upload plugin examples and documentation
- Added comprehensive test page for file upload functionality
-
C++ Bridge Fix:
- Fixed critical bug where request headers were not being parsed from JSON
- Headers are now properly deserialized from
headers_jsonfield and passed to JS callbacks - Removed
.value()call from non-optional headers map
Features
✅ File upload support via multipart/form-data
✅ Configurable temporary directory for uploads
✅ Upload metadata passed to JS callbacks
✅ Updated test page with file upload UI
✅ Fixed headers parsing for all request types
The upload plugin enables secure file handling in Rust while maintaining flexibility for JS-based processing logic.