lets say there is a Function
public void UploadSomewhere(FileStream fs)
If I use FileStream Its not enough to point to the file path, I need also to select the FileMode and Im not sure what is the correct FileMode if you are just copy/moving the file. Any ideas?
If you want to use FileStream you can simply use Open for the source file.
e.g.,
For the target file you have to decide what happens if it exists:
Create will let you overwrite an existing file if you’ve got the Write permission.
CreateNew will throw if the file exists. Again, you’d need the Write permission.
But, as others have written, you could skip the FileStream completely and use the File commands.
Reference: http://msdn.microsoft.com/en-us/library/system.io.filemode.aspx