You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
337 B
Go
18 lines
337 B
Go
package storage
|
|
|
|
import "time"
|
|
|
|
type File struct {
|
|
Name string `form:"name"`
|
|
SHA256 string `form:"sha256"`
|
|
Size int64 `form:"size"`
|
|
Type string `form:"type"` // MIME type
|
|
}
|
|
|
|
type UploadForm struct {
|
|
Files []File `form:"files" binding:"required"`
|
|
|
|
// Default Date().toJSON() from js
|
|
TimeStamp time.Time `form:"timestamp"`
|
|
}
|