mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-05-19 10:32:14 +00:00
changed styling issues
This commit is contained in:
parent
1496b5e591
commit
dd70202ff3
@ -90,7 +90,7 @@ public record FileAttachment(FileAttachmentType Type, string FileName, string Fi
|
|||||||
if (FileTypes.IsAllowedPath(filePath, FileTypes.IMAGE))
|
if (FileTypes.IsAllowedPath(filePath, FileTypes.IMAGE))
|
||||||
return FileAttachmentType.IMAGE;
|
return FileAttachmentType.IMAGE;
|
||||||
|
|
||||||
// Check if it's an audio file
|
// Check if it's an audio file:
|
||||||
if (FileTypes.IsAllowedPath(filePath, FileTypes.AUDIO))
|
if (FileTypes.IsAllowedPath(filePath, FileTypes.AUDIO))
|
||||||
return FileAttachmentType.AUDIO;
|
return FileAttachmentType.AUDIO;
|
||||||
|
|
||||||
|
|||||||
@ -181,7 +181,7 @@ public partial class AttachDocuments : MSGComponentBase
|
|||||||
{
|
{
|
||||||
if(!await FileExtensionValidation.IsExtensionValidWithNotifyAsync(FileExtensionValidation.UseCase.ATTACHING_CONTENT, path, this.ValidateMediaFileTypes, this.Provider))
|
if(!await FileExtensionValidation.IsExtensionValidWithNotifyAsync(FileExtensionValidation.UseCase.ATTACHING_CONTENT, path, this.ValidateMediaFileTypes, this.Provider))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
this.DocumentPaths.Add(FileAttachment.FromPath(path));
|
this.DocumentPaths.Add(FileAttachment.FromPath(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user