deep-autofill-chrome-extension icon indicating copy to clipboard operation
deep-autofill-chrome-extension copied to clipboard

Anyway to autofill file uploads?

Open yan-michael opened this issue 6 years ago • 1 comments

Is there anyway to modify this code to automatically upload a file from a local location to a site?

yan-michael avatar Nov 22 '19 11:11 yan-michael

Regarding to this topic I would bet no. https://stackoverflow.com/questions/6021526/programmatically-set-the-value-of-a-type-file-input-html-element

Javascript control over file input fields is very limited. Otherwise people could use this to steal files from user's computers.

However since this is an Chrome addon it might be possible but it is a question for Chrome addon problem discussions. This question exceeds my experience. If a Chrome Addon is able to do that sure you can modify the code to solve the problem.

The place where the magic happens is at https://github.com/s-a/deep-autofill-chrome-extension/blob/master/run.js#L116

s-a avatar Nov 22 '19 11:11 s-a