upload file when type is link