Make sure upload component have flag value submitted