Change file send strategy #23

Closed
opened 2025-04-15 19:08:20 -04:00 by maxpeterkaya · 0 comments
maxpeterkaya commented 2025-04-15 19:08:20 -04:00 (Migrated from github.com)

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.

## 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
maxpeterkaya/amur#23
No description provided.