From fa5262437477de1baa16fd5367ed0181764d5eae Mon Sep 17 00:00:00 2001 From: Christoph Wiechert Date: Fri, 14 Dec 2018 16:02:03 +0100 Subject: [PATCH] Specify an explicit upload bucket ID with ?sid= param. (Closes #42) --- README.md | 1 + app/src/Upload/Settings.vue | 38 +++++++++++++++++----------------- app/src/Upload/store/upload.js | 12 ++++++++++- 3 files changed, 31 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index d985e09..51304c2 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ It's an alternative to paid services like Dropbox, WeTransfer. * Password protected download list ([AES](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard)) * `/admin` Page lists bucket information, [Screenshot](https://raw.githubusercontent.com/psi-4ward/psitransfer/master/docs/PsiTransfer-Admin.png) (_disabled until you set `adminPass` config value_) * Lightweight [Vue](https://vuejs.org) based frontend apps. Gzipped (on by default) less than 65k +* Explicit named bucket IDs with query param `sid=` **See the blog posts about PsiTransfer: https://psi.cx/tags/PsiTransfer/ and checkout the [Documentation](https://github.com/psi-4ward/psitransfer/tree/master/docs)** diff --git a/app/src/Upload/Settings.vue b/app/src/Upload/Settings.vue index ec8d512..5c15008 100644 --- a/app/src/Upload/Settings.vue +++ b/app/src/Upload/Settings.vue @@ -7,46 +7,46 @@ label(for='retention') Retention | select#retention.form-control(:value='retention', :disabled='disabled', - @input="$store.commit('upload/RETENTION', $event.target.value)") + @input="$store.commit('upload/RETENTION', $event.target.value)") option(v-for='(label, seconds, index) in config.retentions', - :value="seconds", :selected="seconds == retention") {{ label }} + :value="seconds", :selected="seconds === retention") {{ label }} div label(for='password') Password .input-group input#password.form-control(type='text', :value='password', - @input="$store.commit('upload/PASSWORD', $event.target.value)", - :disabled='disabled', placeholder='optional') + @input="$store.commit('upload/PASSWORD', $event.target.value)", + :disabled='disabled', placeholder='optional') span.input-group-addon(style='cursor: pointer', title='generate password', @click='generatePassword()') icon(name="key")