Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyway to autofill file uploads? #6

Open
yan-michael opened this issue Nov 22, 2019 · 1 comment
Open

Anyway to autofill file uploads? #6

yan-michael opened this issue Nov 22, 2019 · 1 comment

Comments

@yan-michael
Copy link

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

@s-a
Copy link
Owner

s-a commented Nov 22, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants