File attachment WIP
This commit is contained in:
@@ -18,7 +18,7 @@ public class FileProvider(ITopLevelProvider topLevelProvider) :
|
||||
{
|
||||
new(filter.Name)
|
||||
{
|
||||
Patterns = filter.Extensions.Select(x => $"*.{x}").ToList()
|
||||
Patterns = filter.Extensions is { Count: > 0 } ? filter.Extensions.Select(x => $"*.{x}").ToList() : ["*.*"]
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public record FileDescriptor(string Name, string Path, int Size) :
|
||||
IFileDescriptor;
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Toolkit.Foundation;
|
||||
|
||||
public interface IFileDescriptor
|
||||
{
|
||||
string Name { get; }
|
||||
|
||||
string Path { get; }
|
||||
|
||||
int Size { get; }
|
||||
}
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
public interface IImageDescriptor
|
||||
{
|
||||
public object Image { get; }
|
||||
object Image { get; }
|
||||
|
||||
public int Width { get; }
|
||||
int Width { get; }
|
||||
|
||||
public int Height { get; }
|
||||
}
|
||||
int Height { get; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user