-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make SaveFileDialog support NOTESTFILECREATE. #870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Because the SaveFileDialog will create a test file to test something and then delete the test file. See GetSaveFileNameA function (commdlg.h) - Win32 apps | Microsoft Docs and OPENFILENAMEA (commdlg.h) - Win32 apps | Microsoft Docs But the wpf/src/Microsoft.DotNet.Wpf/src/PresentationFramework/Microsoft/Win32/FileDialog.cs Lines 1680 to 1689 in 12601c5
|
This enhancement has been implemented in .NET 8. Reference - Link Hence closing this issue. |
Needs to stop SaveFileDialog from creating an empty file.
The problem for us is that we have configured the file system security so that a file can be created and filled with data, but once it has been closed, it may not be modified or deleted (by a regular user). When our application tries to use file name returned by the SaveFileDialog, that file already exists and we get the following error when we try to fill it with data: “You don’t have permission to modify files in this network location.”
The text was updated successfully, but these errors were encountered: