Reuse upload token

Last post 02-18-2008 7:41 AM by BarryR. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-17-2008 10:44 PM

    Reuse upload token

    Hello again,

     I've just run my first few tests using the Nirvanix API and I've noticed that the upload token, once obtained, can be reused for multiple files. Can I rely on this or should I always try to get an upload token before I upload the file?

    The reason I'm asking is that our usage model involves uploading a file and then overwriting it every few seconds (it's an image from a webcam and gets updated every 5-60 seconds, depending on the network). Can I generate a single token and use it to upload/overwrite the file? It seems like a bad use of resources to hit the Nirvanix servers twice for each upload, especially since I'll be overwriting the same file, not writing any new ones.

     Thank you,

    Razvan

    Filed under: ,
  • 02-18-2008 7:41 AM In reply to

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

    Re: Reuse upload token

    The system is designed to have one upload per upload token.  You will likely run into problems if you are using the same upload token since this is the information used to handle the multi-part uploads.  If you are uploading with the same token from multiple clients or threads there will definately be issues since this is how we identify a single file or series of files being uploaded in one call.

    Regards,
        Barry R.
     

    IM Support (Feel free to add me)

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