Fix for the multiple triggers on upload