Skip to content
Snippets Groups Projects
Verified Commit a6554a48 authored by jfriedli's avatar jfriedli
Browse files

fixed todos

parent a81f94ab
No related branches found
No related tags found
2 merge requests!364Develop,!360Resolve "Refactor"
Pipeline #44683 failed
......@@ -208,8 +208,6 @@ export default {
try {
await this.$store.dispatch('Upload/bulkDownload', body)
} catch (e) {
// @todo remove
console.error(e)
this.$q.notify({
color: 'negative',
position: 'top',
......
......@@ -77,8 +77,6 @@ export default {
await this.$store.dispatch('Upload/fetchSupportedExtensions')
this.startUppy()
} catch (e) {
// @todo remove
console.log(e)
this.$q.notify({
color: 'negative',
position: 'top',
......
......@@ -24,9 +24,9 @@ export default class UppyHelperClass {
const uppy = Uppy.Core({
autoProceed: false,
restrictions: {
// @todo make configurable
maxFileSize: 16777216, // 16MB
maxNumberOfFiles: 10, // the max standard for api/download/bulk endpoint
maxFileSize: process.env.MAX_UPLOAD_SIZE ? process.env.MAX_UPLOAD_SIZE : 16777216, // 16MB
// the max standard for api/download/bulk endpoint
maxNumberOfFiles: process.env.MAX_UPLOAD_FILES ? process.env.MAX_UPLOAD_FILES : 10,
allowedFileTypes: supportedExtensions
},
locale: locale
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment