- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for TypeByExtension (0.1 sec)
-
docs/extensions/s3zip/README.md
## Content-Type
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Apr 10 16:28:27 UTC 2024 - 3K bytes - Viewed (0) -
cmd/ftp-server-driver.go
clnt, err := driver.getMinIOClient(ctx) if err != nil { return 0, err } info, err := clnt.PutObject(context.Background(), bucket, object, data, -1, minio.PutObjectOptions{ ContentType: mimedb.TypeByExtension(path.Ext(object)), DisableContentSha256: true, }) n = info.Size return n, err
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 14K bytes - Viewed (0) -
cmd/sftp-server-driver.go
r: pr, wg: &sync.WaitGroup{}, } wa.wg.Add(1) go func() { oi, err := clnt.PutObject(r.Context(), bucket, object, pr, -1, minio.PutObjectOptions{ ContentType: mimedb.TypeByExtension(path.Ext(object)), DisableContentSha256: true, }) stopFn(oi.Size, err) pr.CloseWithError(err) wa.wg.Done() }() return wa, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Jun 05 07:51:13 UTC 2024 - 11.1K bytes - Viewed (0) -
cmd/s3-zip-handlers.go
} // New object info fileObjInfo := ObjectInfo{ Bucket: bucket, Name: object, Size: int64(file.UncompressedSize64), ModTime: zipObjInfo.ModTime, ContentType: mime.TypeByExtension(filepath.Ext(object)), } var rc io.ReadCloser if file.UncompressedSize64 > 0 { // There may be number of header bytes before the content.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 15.8K bytes - Viewed (0) -
cmd/erasure-multipart.go
for index := range partsMetadata { partsMetadata[index] = fi } // Guess content-type from the extension if possible. if userDefined["content-type"] == "" { userDefined["content-type"] = mimedb.TypeByExtension(path.Ext(object)) } // if storageClass is standard no need to save it as part of metadata. if userDefined[xhttp.AmzStorageClass] == storageclass.STANDARD { delete(userDefined, xhttp.AmzStorageClass) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sun Sep 29 22:40:36 UTC 2024 - 44.7K bytes - Viewed (0) -
cmd/erasure-object.go
userDefined["etag"] = opts.PreserveETag } } // Guess content-type from the extension if possible. if userDefined["content-type"] == "" { userDefined["content-type"] = mimedb.TypeByExtension(path.Ext(object)) } // if storageClass is standard no need to save it as part of metadata. if userDefined[xhttp.AmzStorageClass] == storageclass.STANDARD { delete(userDefined, xhttp.AmzStorageClass)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 78.8K bytes - Viewed (0) -
api/go1.txt
pkg mime, func AddExtensionType(string, string) error pkg mime, func FormatMediaType(string, map[string]string) string pkg mime, func ParseMediaType(string) (string, map[string]string, error) pkg mime, func TypeByExtension(string) string pkg mime/multipart, func NewReader(io.Reader, string) *Reader pkg mime/multipart, func NewWriter(io.Writer) *Writer pkg mime/multipart, method (*FileHeader) Open() (File, error)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0)