18 lines
639 B
C#
18 lines
639 B
C#
// src/Webshop.Application/Services/IFileUploadService.cs
|
|
using Microsoft.AspNetCore.Http;
|
|
using System.Threading.Tasks;
|
|
using Webshop.Application;
|
|
using Webshop.Application.DTOs;
|
|
|
|
namespace Webshop.Application.Services
|
|
{
|
|
public interface IFileUploadService
|
|
{
|
|
/// <summary>
|
|
/// Validiert und speichert eine hochgeladene Datei.
|
|
/// </summary>
|
|
/// <param name="file">Die per HTTP-Request hochgeladene Datei.</param>
|
|
/// <returns>Ein ServiceResult, das bei Erfolg die URL der Datei enthält.</returns>
|
|
Task<ServiceResult<FileUploadResultDto>> UploadFileAsync(IFormFile file);
|
|
}
|
|
} |