diff --git a/browser/app/js/uploads/__tests__/actions.test.js b/browser/app/js/uploads/__tests__/actions.test.js
index 714d90a30..09d56e801 100644
--- a/browser/app/js/uploads/__tests__/actions.test.js
+++ b/browser/app/js/uploads/__tests__/actions.test.js
@@ -138,9 +138,10 @@ describe("Uploads actions", () => {
objects: { currentPrefix: "pre1/" }
})
store.dispatch(uploadsActions.uploadFile(file))
+ const objectPath = encodeURIComponent("pre1/file1")
expect(open).toHaveBeenCalledWith(
"PUT",
- "https://localhost:8080/upload/test1/pre1/file1",
+ "https://localhost:8080/upload/test1/" + objectPath,
true
)
expect(send).toHaveBeenCalledWith(file)
diff --git a/browser/app/js/uploads/actions.js b/browser/app/js/uploads/actions.js
index 9d6ac4da0..01b72a58c 100644
--- a/browser/app/js/uploads/actions.js
+++ b/browser/app/js/uploads/actions.js
@@ -94,7 +94,7 @@ export const uploadFile = file => {
_filePath = _filePath.substring(1)
}
const filePath = _filePath
- const objectName = `${currentPrefix}${filePath}`
+ const objectName = encodeURIComponent(`${currentPrefix}${filePath}`)
const uploadUrl = `${
window.location.origin
}${minioBrowserPrefix}/upload/${currentBucket}/${objectName}`
diff --git a/browser/ui-assets.go b/browser/ui-assets.go
index 8de6ec454..bcf9a1374 100644
--- a/browser/ui-assets.go
+++ b/browser/ui-assets.go
@@ -1,4 +1,4 @@
-// Package browser Code generated by go-bindata. (@generated) DO NOT EDIT.
+// Code generated by go-bindata.
// sources:
// production/chrome.png
// production/favicon-16x16.png
@@ -6,14 +6,17 @@
// production/favicon-96x96.png
// production/firefox.png
// production/index.html
-// production/index_bundle-2020-12-13T03-47-56Z.js
+// production/index_bundle-2021-01-12T13-07-37Z.js
// production/loader.css
// production/logo.svg
// production/safari.png
+// DO NOT EDIT!
+
package browser
import (
"fmt"
+ "github.com/elazarl/go-bindata-assetfs"
"io/ioutil"
"os"
"path/filepath"
@@ -33,32 +36,21 @@ type bindataFileInfo struct {
modTime time.Time
}
-// Name return file name
func (fi bindataFileInfo) Name() string {
return fi.name
}
-
-// Size return file size
func (fi bindataFileInfo) Size() int64 {
return fi.size
}
-
-// Mode return file mode
func (fi bindataFileInfo) Mode() os.FileMode {
return fi.mode
}
-
-// Mode return file modify time
func (fi bindataFileInfo) ModTime() time.Time {
return fi.modTime
}
-
-// IsDir return file whether a directory
func (fi bindataFileInfo) IsDir() bool {
- return fi.mode&os.ModeDir != 0
+ return false
}
-
-// Sys return file is sys mode
func (fi bindataFileInfo) Sys() interface{} {
return nil
}
@@ -75,7 +67,7 @@ func productionChromePng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(436), modTime: time.Unix(1607831293, 0)}
+ info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(420), modTime: time.Unix(1610456882, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -92,7 +84,7 @@ func productionFavicon16x16Png() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon-16x16.png", size: 14906, mode: os.FileMode(436), modTime: time.Unix(1607831293, 0)}
+ info := bindataFileInfo{name: "production/favicon-16x16.png", size: 14906, mode: os.FileMode(420), modTime: time.Unix(1610456882, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -109,7 +101,7 @@ func productionFavicon32x32Png() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon-32x32.png", size: 16066, mode: os.FileMode(436), modTime: time.Unix(1607831293, 0)}
+ info := bindataFileInfo{name: "production/favicon-32x32.png", size: 16066, mode: os.FileMode(420), modTime: time.Unix(1610456882, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -126,7 +118,7 @@ func productionFavicon96x96Png() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon-96x96.png", size: 17029, mode: os.FileMode(436), modTime: time.Unix(1607831293, 0)}
+ info := bindataFileInfo{name: "production/favicon-96x96.png", size: 17029, mode: os.FileMode(420), modTime: time.Unix(1610456882, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -143,7 +135,7 @@ func productionFirefoxPng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(436), modTime: time.Unix(1607831293, 0)}
+ info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(420), modTime: time.Unix(1610456882, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -203,8 +195,8 @@ var _productionIndexHTML = []byte(`
-
-
+
+