Skip to content

Commit

Permalink
golang specifics
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell committed Jul 24, 2023
1 parent c622a1a commit 4b3932f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions handlers/file_upload_handler/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"github.com/google/uuid"
)

const GoVirtual = "govirtual"

type FileUploadHandler struct {
File *types.File
parentPath string
Expand All @@ -31,7 +33,7 @@ func NewFileUploadHandler(file *os.File, parentPath string, uuid string, savedKe
details := types.Details{
Name: file.Name(),
LastModified: fileDetails.ModTime(),
FileType: file.Name(),
FileType: GoVirtual,
Size: fileDetails.Size(),
}
var b bytes.Buffer
Expand Down Expand Up @@ -73,7 +75,7 @@ func TrackVirtualFile(bytes []byte, fileName string, parentPath string) (*FileUp
details := types.Details{
Name: fileName,
LastModified: time.Now(),
FileType: "virtual",
FileType: GoVirtual,
Size: int64(len(bytes)),
}

Expand Down

0 comments on commit 4b3932f

Please sign in to comment.