Files
PSMinIO/Module
PSMinIO Developer 98778cc8e1 Fix zip archive CompressedLength access bug
� BUG FIX:
  • Fixed InvalidOperationException: 'Length properties are unavailable once an entry has been opened for writing'
  • Added try-catch block around entry.CompressedLength access
  • Use uncompressed size as fallback when CompressedLength is not available
  • Ensures zip operations complete successfully without errors

 SOLUTION:
  • CompressedLength property is only available after entry stream is fully closed
  • Added graceful fallback to prevent operation failures
  • Maintains accurate progress reporting and metrics collection
  • Preserves all zip functionality while fixing the access timing issue

The zip archive creation now works reliably for all file types and sizes.
2025-07-14 12:06:23 -04:00
..