diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-17 20:54:53 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-17 20:54:53 -0800 |
| commit | aa17311063c0303c35db1cd450afe1bd609f7da5 (patch) | |
| tree | 01944bb9137790d862c1083dff6929b6a6d99a77 | |
| parent | e6b12e6de3edc3ffd1382d0fdc6fcb2d3cfc0822 (diff) | |
| download | seaweedfs-aa17311063c0303c35db1cd450afe1bd609f7da5.tar.xz seaweedfs-aa17311063c0303c35db1cd450afe1bd609f7da5.zip | |
s3: set filename when uploading file chunks
| -rw-r--r-- | weed/server/filer_server_handlers_write_autochunk.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go index 145989445..d3ce7e605 100644 --- a/weed/server/filer_server_handlers_write_autochunk.go +++ b/weed/server/filer_server_handlers_write_autochunk.go @@ -104,7 +104,7 @@ func (fs *FilerServer) doPostAutoChunk(ctx context.Context, w http.ResponseWrite func (fs *FilerServer) doPutAutoChunk(ctx context.Context, w http.ResponseWriter, r *http.Request, chunkSize int32, so *operation.StorageOption) (filerResult *FilerPostResult, md5bytes []byte, replyerr error) { - fileName := "" + fileName := path.Base(r.URL.Path) contentType := r.Header.Get("Content-Type") if contentType == "application/octet-stream" { contentType = "" |
