O
O
oe24y2019-10-12 13:43:16
JavaScript
oe24y, 2019-10-12 13:43:16

How to load a file into input from the file system from the Chrome console?

It is necessary "programmatically" from Tampermonkey to link a file from the computer's file system to the input field inside the form.
input is of course of type file.

Suddenly, there is still a way to do this without third-party clickers.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-10-12
@grinat

This is impossible, without user action you cannot load anything into the input. There is a filesystem api in my opinion, but it doesn’t seem to be supported anywhere except for chrome, and it’s possible to do such things there, but again, there is access to files only to those that the user uploaded to pesocinuts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question