amazon file upload function on events