Enhancement: File Handling and Compression Support #4
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: supernets/hardfiles#4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "compression"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary:
This pull request introduces significant enhancements to the file upload functionality, including support for gzip compressed files and improvements to the file handling process in the UploadHandler function. Additionally, it extends the client-side functionality to allow for file compression before upload, leveraging the pako compression library.
Changes:
Server-Side
compress/gzip
,strings
, andbytes
packages to support gzipisValidGzipHeader
function to validate gzip headers in uploadedUploadHandler
.5000
extension if they have a valid gzipos.O_TRUNC
to replace contents on upload.Client-Side Enhancements:
pako
compression library for client-side gzip compression of files before uploading..5000
extension for compressed files, and handle UI feedback.Testing:
Solves: #3 (comment)
Most affected will be front-end users to try the changes via curl make sure to gzip your file and replace
gz
with5000