kasparkuldkepp / upload-at-click

Automatically exported from code.google.com/p/upload-at-click
0 stars 0 forks source link

programmatically click on click #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, Vital.

Could you help me.

I have code like this:

<input type="button" id="uploader_1" value="Choose File" />
upclick({';
element: uploader_1,
action: './Upload.php',
action_params: {id: 1},
onstart:
function(filename) {},
oncomplete:
function(response_data) {}
});

When I click uploader_1 in browser then everything is fine.
But I can't programmatically click this element through javascript (like  
uploader_1.click();).

Thank you a lot.

Original issue reported on code.google.com by timur.le...@gmail.com on 17 Dec 2012 at 9:12

GoogleCodeExporter commented 8 years ago
That's the problem - programmly to click <input type="file">
Because security. Is forbidden by browser.
Could not find a workaround.

Flash can be helpful ..

Original comment by vital.fadeev on 14 Dec 2013 at 3:30