reset password
Author Message
prenteria
Posts: 13
Posted 00:29 Nov 02, 2010 |

In this section it says that:

  • Two files with the same name and are uploaded to the same folder should be treated as two different files.
  •  
  • My question is:
  • Are we going to list under the folder only the newest version of the file?
  •  

  •  
  • cysun
    Posts: 2935
    Posted 07:38 Nov 02, 2010 |

    No. Treating them as two different files means both of them should be listed.

    aponif
    Posts: 10
    Posted 10:47 Nov 02, 2010 |

    If they are treated as different files, does it mean that you will create a new file when you upload a file with same name without increasing version?

    I am a little confused.

    cysun
    Posts: 2935
    Posted 11:03 Nov 02, 2010 |
    aponif wrote:

    If they are treated as different files, does it mean that you will create a new file when you upload a file with same name without increasing version?

    I am a little confused.

    Yes. Implementation-wise it's actually easier than treating them as the same file because then you have to first check whether the current folder already has a file with the same name.

    aponif
    Posts: 10
    Posted 11:18 Nov 02, 2010 |

    Shall we need to distinguish to display them, or it is doesn't matter to dislay them as same name.

    cysun
    Posts: 2935
    Posted 11:25 Nov 02, 2010 |
    aponif wrote:

    Shall we need to distinguish to display them, or it is doesn't matter to dislay them as same name.

    You obviously need to display both files. It's fine if both files have the same name.

    prenteria
    Posts: 13
    Posted 12:09 Nov 02, 2010 |

    Then, if we are listing all of them we would be displaying the name and the version number of it.

    Then, now my question is going to the rename section:

    If we have:

    File1.txt

    File1.txt (2)

    When the user renames File1.txt to File8.txt it would be:

    File8.txt

    File1.txt (2)

    Then, should we also reset File1.txt (2) version to just File1.txt?

    File1.txt

    File8.txt

    cysun
    Posts: 2935
    Posted 13:12 Nov 02, 2010 |
    prenteria wrote:

    Then, if we are listing all of them we would be displaying the name and the version number of it.

    Then, now my question is going to the rename section:

    If we have:

    File1.txt

    File1.txt (2)

    When the user renames File1.txt to File8.txt it would be:

    File8.txt

    File1.txt (2)

    Then, should we also reset File1.txt (2) version to just File1.txt?

    File1.txt

    File8.txt

    No need to add version number to file name. If you have two files called File1.txt, you can display them as

    File1.txt
    File1.txt

    The application uses file id to distinguish them so there's no name conflict, unlike in a physical file system.

    Last edited by cysun at 13:12 Nov 02, 2010.