Kirby 4 - Skip Fileupload Dialog

Here’s my hacky solution: overwrite the k-upload-dialog to immediately submit once it’s created.

panel.plugin('my-plugin/panel', {
  components: {
    'k-upload-dialog': {
      extends: 'k-upload-dialog',
      created() {
        // Submit immediately, we don't want this upload dialog...
        this.$emit('submit');
      },
    },
  },
})
1 Like