better way to check if file is uploaded or changed before adding fileboxcommit term