From 86bc0448edee8e1f816e798dfc102760c2570746 Mon Sep 17 00:00:00 2001 From: fanpei-tes Date: Wed, 14 Oct 2020 15:32:08 +0800 Subject: [PATCH] support custom id --- pkg/handler/unrouted_handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/handler/unrouted_handler.go b/pkg/handler/unrouted_handler.go index ff405b4d1..f02f3e8ba 100644 --- a/pkg/handler/unrouted_handler.go +++ b/pkg/handler/unrouted_handler.go @@ -345,6 +345,7 @@ func (handler *UnroutedHandler) PostFile(w http.ResponseWriter, r *http.Request) IsPartial: isPartial, IsFinal: isFinal, PartialUploads: partialUploadIDs, + ID: meta["id"], } if handler.config.PreUploadCreateCallback != nil {