fixed upload from local device issue.