Change file send strategy #23
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
go
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
maxpeterkaya/amur#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Current Behavior
File gets read and then sent as a blob while mimetype function also reads the file in full, which results in a minimum of 2 reads of the same file.
Proposed Behavior
Send the file using c.File() instead of reading before sending, while mimetype change in #22 will change behavior to only read first 512 bytes of file.