diff --git a/browser/app/js/components/Browse.js b/browser/app/js/components/Browse.js
index f532c4a44..9f6f7b033 100644
--- a/browser/app/js/components/Browse.js
+++ b/browser/app/js/components/Browse.js
@@ -150,16 +150,21 @@ export default class Browse extends React.Component {
if (prefix === currentPath) return
browserHistory.push(utils.pathJoin(currentBucket, encPrefix))
} else {
- // Download the selected file.
- web.CreateURLToken()
- .then(res => {
- let url = `${window.location.origin}/minio/download/${currentBucket}/${encPrefix}?token=${res.token}`
- window.location = url
- })
- .catch(err => dispatch(actions.showAlert({
- type: 'danger',
- message: err.message
- })))
+ if (!web.LoggedIn()) {
+ let url = `${window.location.origin}/minio/download/${currentBucket}/${encPrefix}?token=''`
+ window.location = url
+ } else {
+ // Download the selected file.
+ web.CreateURLToken()
+ .then(res => {
+ let url = `${window.location.origin}/minio/download/${currentBucket}/${encPrefix}?token=${res.token}`
+ window.location = url
+ })
+ .catch(err => dispatch(actions.showAlert({
+ type: 'danger',
+ message: err.message
+ })))
+ }
}
}
@@ -421,18 +426,23 @@ export default class Browse extends React.Component {
objects: this.props.checkedObjects,
prefix: this.props.currentPath
}
+ if (!web.LoggedIn()) {
+ let requestUrl = location.origin + "/minio/zip?token=''"
+ this.xhr = new XMLHttpRequest()
+ dispatch(actions.downloadSelected(requestUrl, req, this.xhr))
+ } else {
+ web.CreateURLToken()
+ .then(res => {
+ let requestUrl = location.origin + "/minio/zip?token=" + res.token
- web.CreateURLToken()
- .then(res => {
- let requestUrl = location.origin + "/minio/zip?token=" + res.token
-
- this.xhr = new XMLHttpRequest()
- dispatch(actions.downloadSelected(requestUrl, req, this.xhr))
- })
- .catch(err => dispatch(actions.showAlert({
- type: 'danger',
- message: err.message
- })))
+ this.xhr = new XMLHttpRequest()
+ dispatch(actions.downloadSelected(requestUrl, req, this.xhr))
+ })
+ .catch(err => dispatch(actions.showAlert({
+ type: 'danger',
+ message: err.message
+ })))
+ }
}
clearSelected() {
diff --git a/browser/ui-assets.go b/browser/ui-assets.go
index 23d7f1897..6cf509ba1 100644
--- a/browser/ui-assets.go
+++ b/browser/ui-assets.go
@@ -4,7 +4,7 @@
// production/favicon.ico
// production/firefox.png
// production/index.html
-// production/index_bundle-2017-08-06T21-24-15Z.js
+// production/index_bundle-2017-10-17T17-47-22Z.js
// production/loader.css
// production/logo.svg
// production/safari.png
@@ -65,7 +65,7 @@ func productionChromePng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)}
+ info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -82,7 +82,7 @@ func productionFaviconIco() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/favicon.ico", size: 1340, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)}
+ info := bindataFileInfo{name: "production/favicon.ico", size: 1340, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -99,7 +99,7 @@ func productionFirefoxPng() (*asset, error) {
return nil, err
}
- info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(436), modTime: time.Unix(1502054677, 0)}
+ info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(436), modTime: time.Unix(1508262459, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -156,8 +156,8 @@ var _productionIndexHTML = []byte(`
-
-
+
+