Skip to content

v1.7.11: Enhance server configuration for file uploads & multipart file upload handling & JobsConfig interface with additional configuration options

Choose a tag to compare

@M-Chris M-Chris released this 01 Jan 00:04
· 124 commits to main since this release

Enhance server configuration for file uploads

  • Introduce maxUploadSize configuration option for controlling file upload limits.
  • Update MoroHttpServer and MoroHttp2Server to utilize configurable body size limits.
  • Implement parsing for multipart/form-data to handle file uploads without corrupting binary data.
  • Add methods for buffer manipulation to ensure integrity during file uploads.
  • Update configuration validation and schema to include maxUploadSize.

Enhance multipart file upload handling and add tests for binary data integrity

  • Refactor multipart parsing to work directly with Buffers, preserving binary data integrity.
  • Implement methods for splitting Buffers and finding sequences within Buffers.
  • Update file handling to ensure binary files are processed correctly without corruption.
  • Add comprehensive unit tests for various file types (images, audio, video, PDF) to verify binary data integrity during uploads.
  • Ensure text fields can be handled alongside binary files in multipart requests.

Enhance JobsConfig interface with additional configuration options

  • Add retryBackoffMultiplier and maxRetryDelay for improved retry handling.
  • Introduce circuitBreakerThreshold and circuitBreakerResetTimeout for circuit breaker functionality.
  • Include memoryThreshold for memory monitoring configuration in executor settings.