Beside the automatic actions, you can specify a callback as the third parameter of the attach function which is called with the widget itself and an array of accepted files as parameters.
自動処理とは別に attachの三番目のパラメータでコールバックを指定することができます。 これはウィジェット自身からコールされ、有効なファイルの配列をパラメータとして受け取ります。 - PEAR