mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-13 10:34:23 +00:00
Merge cefe418a54 into f69186f7a9
This commit is contained in:
commit
4c2100527b
@ -7621,6 +7621,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T29806295
|
|||||||
-- Images are not supported at this place
|
-- Images are not supported at this place
|
||||||
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T305247150"] = "Images are not supported at this place"
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T305247150"] = "Images are not supported at this place"
|
||||||
|
|
||||||
|
-- This file format is not supported. Please convert the .doc file to .docx (e.g. with Microsoft Word).
|
||||||
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T3740637731"] = "This file format is not supported. Please convert the .doc file to .docx (e.g. with Microsoft Word)."
|
||||||
|
|
||||||
-- Unsupported file type
|
-- Unsupported file type
|
||||||
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T4041351522"] = "Unsupported file type"
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T4041351522"] = "Unsupported file type"
|
||||||
|
|
||||||
|
|||||||
@ -7611,6 +7611,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T13982828
|
|||||||
-- File has no extension
|
-- File has no extension
|
||||||
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T1555980031"] = "Datei hat keine Erweiterung"
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T1555980031"] = "Datei hat keine Erweiterung"
|
||||||
|
|
||||||
|
-- This file format is not supported.
|
||||||
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T2634293666"] = "Dieses Dateiformat wird nicht unterstützt. Bitte konvertieren Sie die .doc-Datei in .docx (z. B. mit Microsoft Word)."
|
||||||
|
|
||||||
-- Audio files are not supported yet
|
-- Audio files are not supported yet
|
||||||
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T2919730669"] = "Audio-Dateien werden noch nicht unterstützt."
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T2919730669"] = "Audio-Dateien werden noch nicht unterstützt."
|
||||||
|
|
||||||
|
|||||||
@ -7623,6 +7623,9 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T29806295
|
|||||||
-- Images are not supported at this place
|
-- Images are not supported at this place
|
||||||
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T305247150"] = "Images are not supported at this place"
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T305247150"] = "Images are not supported at this place"
|
||||||
|
|
||||||
|
-- This file format is not supported.
|
||||||
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T1506058512"] = "This file format is not supported. Please convert the .doc file to .docx (e.g. with Microsoft Word)."
|
||||||
|
|
||||||
-- Unsupported file type
|
-- Unsupported file type
|
||||||
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T4041351522"] = "Unsupported file type"
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::VALIDATION::FILEEXTENSIONVALIDATION::T4041351522"] = "Unsupported file type"
|
||||||
|
|
||||||
@ -7672,4 +7675,4 @@ UI_TEXT_CONTENT["AISTUDIO::TOOLS::WORKSPACEBEHAVIOUR::T1307384014"] = "Unnamed w
|
|||||||
UI_TEXT_CONTENT["AISTUDIO::TOOLS::WORKSPACEBEHAVIOUR::T2244038752"] = "Delete Chat"
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::WORKSPACEBEHAVIOUR::T2244038752"] = "Delete Chat"
|
||||||
|
|
||||||
-- Unnamed chat
|
-- Unnamed chat
|
||||||
UI_TEXT_CONTENT["AISTUDIO::TOOLS::WORKSPACEBEHAVIOUR::T3310482275"] = "Unnamed chat"
|
UI_TEXT_CONTENT["AISTUDIO::TOOLS::WORKSPACEBEHAVIOUR::T3310482275"] = "Unnamed chat"
|
||||||
@ -45,7 +45,7 @@ public static class FileTypes
|
|||||||
// Document hierarchy
|
// Document hierarchy
|
||||||
public static readonly FileTypeFilter PDF = FileTypeFilter.Leaf("PDF", "pdf");
|
public static readonly FileTypeFilter PDF = FileTypeFilter.Leaf("PDF", "pdf");
|
||||||
public static readonly FileTypeFilter TEXT = FileTypeFilter.Leaf(TB("Text"), "txt", "md", "rtf");
|
public static readonly FileTypeFilter TEXT = FileTypeFilter.Leaf(TB("Text"), "txt", "md", "rtf");
|
||||||
public static readonly FileTypeFilter MS_WORD = FileTypeFilter.Leaf("Microsoft Word", "docx", "doc");
|
public static readonly FileTypeFilter MS_WORD = FileTypeFilter.Leaf("Microsoft Word", "docx");
|
||||||
public static readonly FileTypeFilter WORD = FileTypeFilter.Composite("Word", ["odt"], MS_WORD);
|
public static readonly FileTypeFilter WORD = FileTypeFilter.Composite("Word", ["odt"], MS_WORD);
|
||||||
public static readonly FileTypeFilter EXCEL = FileTypeFilter.Leaf("Excel", "xls", "xlsx");
|
public static readonly FileTypeFilter EXCEL = FileTypeFilter.Leaf("Excel", "xls", "xlsx");
|
||||||
public static readonly FileTypeFilter POWER_POINT = FileTypeFilter.Leaf("PowerPoint", "ppt", "pptx");
|
public static readonly FileTypeFilter POWER_POINT = FileTypeFilter.Leaf("PowerPoint", "ppt", "pptx");
|
||||||
|
|||||||
@ -43,6 +43,14 @@ public static class FileExtensionValidation
|
|||||||
/// <returns>True if valid, false if invalid (error/warning already sent via MessageBus).</returns>
|
/// <returns>True if valid, false if invalid (error/warning already sent via MessageBus).</returns>
|
||||||
public static async Task<bool> IsExtensionValidWithNotifyAsync(UseCase useCae, string filePath, bool validateMediaFileTypes = true, Settings.Provider? provider = null)
|
public static async Task<bool> IsExtensionValidWithNotifyAsync(UseCase useCae, string filePath, bool validateMediaFileTypes = true, Settings.Provider? provider = null)
|
||||||
{
|
{
|
||||||
|
if (string.Equals(Path.GetExtension(filePath), ".doc", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
await MessageBus.INSTANCE.SendWarning(new(
|
||||||
|
Icons.Material.Filled.Description,
|
||||||
|
TB("This file format is not supported. Please convert the .doc file to .docx (e.g. with Microsoft Word).")));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (FileTypes.IsAllowedPath(filePath, FileTypes.EXECUTABLES))
|
if (FileTypes.IsAllowedPath(filePath, FileTypes.EXECUTABLES))
|
||||||
{
|
{
|
||||||
await MessageBus.INSTANCE.SendError(new(
|
await MessageBus.INSTANCE.SendError(new(
|
||||||
@ -138,4 +146,4 @@ public static class FileExtensionValidation
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -37,6 +37,7 @@
|
|||||||
- Fixed an issue where file and folder selection dialogs could open more than once on Windows. Thanks to Bernhard for reporting this bug.
|
- Fixed an issue where file and folder selection dialogs could open more than once on Windows. Thanks to Bernhard for reporting this bug.
|
||||||
- Fixed an issue where exporting to Word could fail when the message contained certain formatting.
|
- Fixed an issue where exporting to Word could fail when the message contained certain formatting.
|
||||||
- Fixed security issues in the native app runtime by strengthening how AI Studio creates and protects the secret values used for its internal secure connection.
|
- Fixed security issues in the native app runtime by strengthening how AI Studio creates and protects the secret values used for its internal secure connection.
|
||||||
|
- Fixed an issue by no longer accepting .doc files. Users will now receive an appropriate error message when attempting to upload them. Thanks to Bernhard for reporting this issue.
|
||||||
- Updated several security-sensitive Rust dependencies in the native runtime to address known vulnerabilities.
|
- Updated several security-sensitive Rust dependencies in the native runtime to address known vulnerabilities.
|
||||||
- Updated .NET to v9.0.15
|
- Updated .NET to v9.0.15
|
||||||
- Updated dependencies
|
- Updated dependencies
|
||||||
Loading…
Reference in New Issue
Block a user