S
S
synapse_people2017-08-08 16:30:40
JavaScript
synapse_people, 2017-08-08 16:30:40

How to select a file programmatically?

Hello!
How can I specify a file from the local file system in the "file"() type field in the extension.
Ideally, of course, specify the URL in the file field. Just select a file, no form required !
Googled all day, there are NO working solutions ... Tell me where to dig, who knows ....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
synapse_people, 2017-08-08
@synapse_people

In general, who cares... There is a great solution, in the debugger, the DOM.setFileInputFiles method.
True, it only supports local files, you can't add blobs... but that's not a problem!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question