fixed @Upload and @Required issue