Same Name

Oct 19, 2012 at 1:41 PM

When i upload a file with the same name as a file that has already been uploaded, it overwrites the old file. Does somebody know how you can fix this?

this is my code

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<%@ Register Assembly="com.flajaxian.FileUploader" Namespace="com.flajaxian" TagPrefix="fjx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    <title></title>
    <script type="text/javascript">
      function FileStateChanged(uploader, file, httpStatus, isLast) {
        Flajaxian.fileStateChanged(uploader, file, httpStatus, isLast);
        if (file.state > Flajaxian.File_Uploading && isLast) {
          document.getElementById("Finish").innerHTML = "Uploaden is gereed";
        }
      }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="Uploader">
      <fjx:FileUploader ID="FileUploader1"
      runat="server"
      TransparentBackground="true"
      JsFunc_FileStateChanged="FileStateChanged"
      CssUrl="FileUploader.css"
      width= "250px"
      >
        <Adapters>
          <fjx:FileSaverAdapter  FolderName="uploads" />
          <fjx:ThumbGeneratorAdapter 
            Extensions="jpg;jpeg" FolderName="uploads"
            Suffix="_thumb" MaximumWidth="200" MaximumHeight="200" />
        </Adapters>
      </fjx:FileUploader>
      <div id="Finish"></div>
    </div>
    </form>
</body>
</html>