Switched to a limitedReader instead

This commit is contained in:
Tracker-Friendly 2025-01-11 15:40:25 +00:00
parent 1fa7a55d82
commit 240c50b06c
1 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import (
"crypto/ed25519"
library "git.ailur.dev/ailur/fg-library/v3"
"github.com/google/uuid"
"io"
"time"
)
@ -23,7 +24,7 @@ type OAuthResponse struct {
type File struct {
Name string `validate:"required"`
User uuid.UUID `validate:"required"`
Bytes []byte // Only used in write operations
Reader io.LimitedReader // Only used for write operations
}
type Quota struct {