Add ability to upload entire file

This commit is contained in:
Cody Robibero
2021-10-26 18:42:17 -06:00
parent f78f1e834c
commit a6357f89ab
4 changed files with 51 additions and 8 deletions

View File

@@ -1,4 +1,6 @@
using MediaBrowser.Model.ClientLog;
using System.IO;
using System.Threading.Tasks;
using MediaBrowser.Model.ClientLog;
namespace MediaBrowser.Controller.ClientEvent
{
@@ -12,5 +14,13 @@ namespace MediaBrowser.Controller.ClientEvent
/// </summary>
/// <param name="clientLogEvent">The client log event.</param>
void Log(ClientLogEvent clientLogEvent);
/// <summary>
/// Writes a file to the log directory.
/// </summary>
/// <param name="fileName">The file name.</param>
/// <param name="fileContents">The file contents.</param>
/// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
Task WriteFileAsync(string fileName, Stream fileContents);
}
}
}