@@ -276,11 +276,13 @@ func (u Upload) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp
276
276
zap .String ("Uploaded File" , handler .Filename ),
277
277
zap .Int64 ("File Size" , handler .Size ),
278
278
zap .Int64 ("written-bytes" , fileBytes ),
279
+ zap .String ("UploadDir" , concatDir ),
279
280
zap .Any ("MIME Header" , handler .Header ),
280
281
zap .Object ("request" , caddyhttp.LoggableHTTPRequest {Request : r }))
281
282
282
283
repl .Set ("http.upload.filename" , handler .Filename )
283
284
repl .Set ("http.upload.filesize" , handler .Size )
285
+ repl .Set ("http.upload.directory" , concatDir )
284
286
285
287
if u .ResponseTemplate != "" {
286
288
r .URL .Path = "/" + u .ResponseTemplate
@@ -398,9 +400,13 @@ func (u *Upload) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
398
400
// of a file:
399
401
//
400
402
// upload {
401
- // dest_dir <destination directory>
402
- // max_filesize <size>
403
- // response_template [<path to a response template>]
403
+ // capath <CA Path>
404
+ // create_uuid_dir true | false
405
+ // dest_dir <destination directory>
406
+ // insecure
407
+ // max_filesize <Humanized size>
408
+ // max_filesize_int <size>
409
+ // response_template [<path to a response template>]
404
410
// }
405
411
func parseCaddyfile (h httpcaddyfile.Helper ) (caddyhttp.MiddlewareHandler , error ) {
406
412
var u Upload
0 commit comments