asp.net - C# FileUpload SaveAs Casing -
i'm using fileupload control , have question saveas method. if file uploaded exists know overwrite it, if casing different on name of file, use existing filename or new one.
example
if have file named test.txt on server , new upload named test.txt comes in, name used?
the answer depends on how os behaves.
with windows os, file overwritten. essentially, far windows concerned, filenames case insensitive, @ least purpose of identifying them. windows use new filename if overwritten (try - copy file different case folder , see comes up), though older versions of os used original filename (xp did so).
on linux os new file created. linux/unix/ios (and pretty unix variants) treat files different casing different files.
Comments
Post a Comment