A
A
Artemio952021-09-28 18:21:21
Vue.js
Artemio95, 2021-09-28 18:21:21

Is it possible to open an explorer window when loading a Vue component?

File chooser dialog can only be shown with a user activation

I get this error when:

mounted() {
        this.$refs.input.click();
    },

<input ref="input" class="file-input" @change="onFileInputChange" type="file" name="" id="" />

In general, is it possible to somehow still open the explorer when the page is loaded, causing an event on a hidden input?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Anton, 2021-09-28
@Fragster

Not

S
Sergey delphinpro, 2021-09-28
@delphinpro

File chooser dialog can only be shown with a user activation

They write to you in black and white that this window is opened only by a user action.
Why ask a question to which you already have an answer?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question