fixed file upload trigger timing