From 13c27e1c19aa5263f1130ba0a5a5b4c202c542a7 Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 21 Feb 2016 18:38:43 +0100 Subject: [PATCH] Send Upload Complete Notification for concatenations --- unrouted_handler.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unrouted_handler.go b/unrouted_handler.go index f9da9b7..a44a1fe 100644 --- a/unrouted_handler.go +++ b/unrouted_handler.go @@ -269,6 +269,11 @@ func (handler *UnroutedHandler) PostFile(w http.ResponseWriter, r *http.Request) handler.sendError(w, r, err) return } + + if handler.config.NotifyCompleteUploads { + info.ID = id + handler.CompleteUploads <- info + } } url := handler.absFileURL(r, id)