public void setNameconflict ( String nameconflict ) throws PageException { nameconflict = nameconflict . toLowerCase ( ) . trim ( ) ; if ( "error" . equals ( nameconflict ) ) this . nameconflict = NAMECONFLICT_ERROR ; else if ( "skip" . equals ( nameconflict ) ) this . nameconflict = NAMECONFLICT_SKIP ; else if ( "overwrite" . equals ( nameconflict ) ) this . nameconflict = NAMECONFLICT_OVERWRITE ; else if ( "makeunique" . equals ( nameconflict ) ) this . nameconflict = NAMECONFLICT_MAKEUNIQUE ; else throw doThrow ( "invalid value for attribute nameconflict [" + nameconflict + "]" , "valid values are [error,skip,overwrite,makeunique]" ) ; }
set the value nameconflict Action to take if filename is the same as that of a file in the directory .