Path already exists!

Last post 08-14-2008 5:22 AM by thanhp. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 08-14-2008 2:33 AM

    • thanhp
    • Top 50 Contributor
    • Joined on 08-04-2008
    • Posts 9

    Path already exists!

    Whenever I upload a file to Nirvanix, if there is an existing file which has the same name, I always get the error: 'Path already exists'. Is there any way to allow me to overwrite the existing file without throwing an exception??

    Your help would be much appreciated. Thank you

  • 08-14-2008 2:41 AM In reply to

    • BarryR
    • Top 10 Contributor
    • Joined on 07-20-2007
    • San Diego
    • Posts 602

    Re: Path already exists!

     You can use GetStorageNodeExtended when generating the upload token. This call takes in the parameter fileOverwrite as a boolean that will let you overwrite the existing file.  You can find the documentation on this method at the following URL:

     http://developer.nirvanix.com/sitefiles/1000/API.html#_TocGetStorageNodeExtended

    Regards,
          Barry R.

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
  • 08-14-2008 5:22 AM In reply to

    • thanhp
    • Top 50 Contributor
    • Joined on 08-04-2008
    • Posts 9

    Re: Path already exists!

    Sorry I still don't know how to use this method as it seems it doesn't tell me how to upload a photo to nirvanix then. Here is my code:

    Dim objIMFS As New com.nirvanix.services.IMFS

    Dim objStorageNode As com.nirvanix.services.StorageNode = Nothing

    Dim sRemotePath As String = "/oztionpic/26l"

    objStorageNode = objIMFS.GetStorageNodeExtended(sToken, 1024, "", False, sRemotePath, True, 6000, 259200)

    then what, I am stuck here. Can you tell me how to do next? Thank you.

Page 1 of 1 (3 items)