0

I'm using the basic 'Open Widget'

<input type="filepicker-dragdrop" id="jpeg_url" ....

Which works. However is there anyway to get some sort of notification when the user clicks the 'Pick file' button?

Background: The Pick File button is in an iframe of its own. Which is normally only 200px high. So the Filepicker.io box is rather unusable. The iframe is capable of controlling its own size, so when the user clicks the button - want to make the iframe bigger.

I guess could attach my own handler to the that filepicker creates,

or even watch for the existance of the , but these seem like hacks.

(or could even just recreate the whole interface using the Pick Files and Drag-Drop Pane APIs, but the widget is simpler)

Chris Morgan
  • 86,207
  • 24
  • 208
  • 215
barryhunter
  • 20,886
  • 3
  • 30
  • 43

1 Answers1

0

probably the easiest way would be to apply a custom class to the widget via the data-fp-button-class property and then use a javascript library to listen to click events on the given class

brettcvz
  • 2,371
  • 1
  • 13
  • 14