fix upload trigger and paths