From a philosophical perspective, this question is the 'Ship of Theseus' conundrum; if you replace every part of a ship over time, is it the same ship?
If we take this a step further into (say) teleporting, the question becomes if you have to destroy someone to encode their quantum signature so you can recreate it in another location, are you creating a copy or is it the real person?
I once read a philosophical paper about this that talked about whether or not the person (if they were NOT destroyed at point of origin) would be in two places at once; the point of it was to highlight that a copy remains a copy even when the original is destroyed.
As for digital uploading, I'm not going to discuss the technical possibilities here because my views on it are very well known. What I will discuss though is whether or not the act of uploading is creating a copy or not.
My view is that it is. Let's say you could be encoded on disk; that means that your 'signature' is now (when you get right down to it) a sequence of 1s and 0s on a storage device. You are, in essence, a positive integer encoded in binary. That number is no more or less significant than any other 'number' stored on that same disk, except that one would imagine it to be MUCH bigger than (say) a novel, or a spreadsheet, or a movie, etc.
The point being, it could be copied. Easily.
If it can be copied, what makes you 'unique'? What stops the rogue AI game from creating multiple copies of you for its own purposes? If that's the case, was that first copy really you? Are the later ones?
Ultimately, this question rises or falls on the very first 'duplication' that occurs, namely the uploading into the computer. It won't be alive, and it won't be able to 'think' the same way you do now because its hardware is at best a subset of the neural processing model of the human brain, and finally (hardware random number generators aside, possibly; topic for another question) computers are deterministic in nature, meaning that if free will is NOT a lie, then you certainly won't have it as a computer file.
Of course, the other thing to remember here is that there's a difference between you the memories, and you the program. If all that is being recorded is your memories, then it's definitely not you because how you think is every bit as important to you as a person as what you think. If the way you think is also being recorded (data + program) then there's more of a chance, that someone may volunteer for this process, and find themselves perfectly 'alive and well' on the computer.
But; this increasingly hypothetical person would not be me.