fixed choose and upload issue