repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
54ad488
parent
6201f5d
author
Eric Bower
date
2024-07-08 16:10:07 +0000 UTC
fix: use file size if available when uploading
3 files changed,  +4, -3
M go.mod
M go.sum
M filehandlers/assets/handler.go
+1, -0
1@@ -257,6 +257,7 @@ func (h *UploadAssetHandler) Write(s ssh.Session, entry *utils.FileEntry) (strin
2 	logger := h.GetLogger().With(
3 		"user", user.Name,
4 		"file", entry.Filepath,
5+		"size", entry.Size,
6 	)
7 
8 	bucket, err := getBucket(s)
M go.mod
+1, -1
1@@ -31,7 +31,7 @@ require (
2 	github.com/mmcdole/gofeed v1.3.0
3 	github.com/muesli/reflow v0.3.0
4 	github.com/neurosnap/go-exif-remove v0.0.0-20221010134343-50d1e3c35577
5-	github.com/picosh/pobj v0.0.0-20240613155002-f703e1356060
6+	github.com/picosh/pobj v0.0.0-20240708144544-9d0e2ca3d3dc
7 	github.com/picosh/ptun v0.0.0-20240529133708-fcf1376b935e
8 	github.com/picosh/send v0.0.0-20240706191319-a4ef3917a8bd
9 	github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
M go.sum
+2, -2
 1@@ -219,8 +219,8 @@ github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N
 2 github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
 3 github.com/philhofer/fwd v1.1.2 h1:bnDivRJ1EWPjUIRXV5KfORO897HTbpFAQddBdE8t7Gw=
 4 github.com/philhofer/fwd v1.1.2/go.mod h1:qkPdfjR2SIEbspLqpe1tO4n5yICnr2DY7mqEx2tUTP0=
 5-github.com/picosh/pobj v0.0.0-20240613155002-f703e1356060 h1:lMVTxeTjp6TnuJOd7xvxTbOhk7rTrZhEWBkVwlkXpQQ=
 6-github.com/picosh/pobj v0.0.0-20240613155002-f703e1356060/go.mod h1:CViLWaCp2KP/zJdd7miNPkJb6i0v9HOgZ2wdbQuxCrQ=
 7+github.com/picosh/pobj v0.0.0-20240708144544-9d0e2ca3d3dc h1:ylEMiypOHSUhZfMFljs++FhooNHAXFsMMsT1cxoPVHE=
 8+github.com/picosh/pobj v0.0.0-20240708144544-9d0e2ca3d3dc/go.mod h1:CViLWaCp2KP/zJdd7miNPkJb6i0v9HOgZ2wdbQuxCrQ=
 9 github.com/picosh/ptun v0.0.0-20240529133708-fcf1376b935e h1:Um9aCUg1ysiUaB0nh3400UHlFAnhd8BXBsawqePxxqQ=
10 github.com/picosh/ptun v0.0.0-20240529133708-fcf1376b935e/go.mod h1:WXCrhe0l9VL3ji0pdhvSJD6LLx99rJoAA/+PUQXf0Mo=
11 github.com/picosh/send v0.0.0-20240706191319-a4ef3917a8bd h1:8JkwHLddx7RU40lOdj9BRUPtKgpM9+GaSP66ikOSYbo=