Save local file storage upon selection instead

closes #895
This commit is contained in:
Kukks
2019-06-25 11:40:33 +02:00
parent 645516ee1b
commit a58ecfd35a
2 changed files with 9 additions and 7 deletions

View File

@@ -235,6 +235,12 @@ namespace BTCPayServer.Controllers
fileProviderService.GetProviderConfiguration(data));
case FileSystemFileProviderService fileProviderService:
if (data.Provider != BTCPayServer.Storage.Models.StorageProvider.FileSystem)
{
_ = await SaveStorageProvider(new FileSystemStorageConfiguration(),
BTCPayServer.Storage.Models.StorageProvider.FileSystem);
}
return View(nameof(EditFileSystemStorageProvider),
fileProviderService.GetProviderConfiguration(data));
}

View File

@@ -9,14 +9,10 @@
<div asp-validation-summary="All" class="text-danger"></div>
</div>
</div>
<p>Nothing to configure here. Data will be saved in the btcpay data directory.</p>
<p>Any uploaded files are being saved on the same machine that hosts BTCPay; please pay attention to your storage space.</p>
<div class="row">
<div class="col-lg-6">
<form method="post">
<button type="submit" class="btn btn-primary" name="command" value="Save">Choose</button>
<a asp-action="Storage" asp-route-forceChoice="true">Change Storage provider</a>
</form>
</div>
</div>