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" "crypto/ed25519"
library "git.ailur.dev/ailur/fg-library/v3" library "git.ailur.dev/ailur/fg-library/v3"
"github.com/google/uuid" "github.com/google/uuid"
"io"
"time" "time"
) )
@ -21,9 +22,9 @@ type OAuthResponse struct {
} }
type File struct { type File struct {
Name string `validate:"required"` Name string `validate:"required"`
User uuid.UUID `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 { type Quota struct {