How to treat "file overwrite"

Last post 09-05-2007 8:23 PM by BarryR. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 09-01-2007 2:40 PM

    How to treat "file overwrite"

    In one of our use cases, we use the storage service for "serverless" checkpoint/state management. This means that checkpoint files always need tp get overwritten with the latest state information. But when I try to upload a file with the same name, it throws an exception telling me that "the folderpath already exists". Is there a way (or uploadfile attribute) that just writes the file unconditionally.
    Filed under: ,
  • 09-05-2007 8:23 PM In reply to

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

    Re: How to treat "file overwrite"

    This is a planned feature (Possibly more on this front as well) but for now the best way to solve it is to rename your existing file and then upload or delete then upload or give your upload a unique name then rename after it has been uploaded.  Since uploads can fail (Due to account limits, or other issues) its safer to rename the upload then remove after the upload is successful.

    Regards,
    Barry R.
     

    IM Support (Feel free to add me)

    MSN: barryruffner@msn.com
    Gmail: barryruffner@gmail.com
    Filed under: ,
Page 1 of 1 (2 items)