mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
* Add updated image upload support on Crowdfund plugin * Refactor crowdfund image upload fix * update crowdfund url for greenfield api * Resolve integration test assertion * Remove superfluous and unused command argument * Fix missing validation error * Minor API controller update * Property and usage fixes * Fix test after merge --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
19 lines
703 B
C#
19 lines
703 B
C#
#nullable enable
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Http;
|
|
using BTCPayServer.Abstractions.Models;
|
|
|
|
namespace BTCPayServer.Abstractions.Contracts;
|
|
|
|
public interface IFileService
|
|
{
|
|
Task<bool> IsAvailable();
|
|
Task<IStoredFile> AddFile(IFormFile file, string userId);
|
|
Task<IStoredFile> AddFile(Uri file, string userId);
|
|
Task<string?> GetFileUrl(Uri baseUri, string fileId);
|
|
Task<string?> GetTemporaryFileUrl(Uri baseUri, string fileId, DateTimeOffset expiry,
|
|
bool isDownload);
|
|
Task RemoveFile(string fileId, string userId);
|
|
Task<UploadImageResultModel> UploadImage(IFormFile file, string userId, long maxFileSizeInBytes = 1_000_000);
|
|
}
|