|
@@ -78,7 +78,7 @@ namespace Quadarax.Application.TemporarySharedStorage.Client.Services
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- Console.WriteLine($"Upload initialized with ID: {initResponse.UploadId}");
|
|
|
|
|
|
|
+ Log(LogSeverityEnum.Debug, $"Upload initialized with ID: {initResponse.UploadId}");
|
|
|
|
|
|
|
|
// Step 3: Upload the file in chunks with progress reporting
|
|
// Step 3: Upload the file in chunks with progress reporting
|
|
|
int totalChunks = (int)Math.Ceiling((double)fileInfo.Length / request.ChunkSize);
|
|
int totalChunks = (int)Math.Ceiling((double)fileInfo.Length / request.ChunkSize);
|
|
@@ -121,8 +121,8 @@ namespace Quadarax.Application.TemporarySharedStorage.Client.Services
|
|
|
if (finalizeResponse != null)
|
|
if (finalizeResponse != null)
|
|
|
{
|
|
{
|
|
|
Log(LogSeverityEnum.Info, "File uploaded successfully!");
|
|
Log(LogSeverityEnum.Info, "File uploaded successfully!");
|
|
|
- Log(LogSeverityEnum.Debug, $"File ID: {finalizeResponse.FileId}");
|
|
|
|
|
- Log(LogSeverityEnum.Debug, $"Permalink: {finalizeResponse.Permalink}");
|
|
|
|
|
|
|
+ Log(LogSeverityEnum.Info, $"File ID: {finalizeResponse.FileId}");
|
|
|
|
|
+ Log(LogSeverityEnum.Info, $"Permalink: {finalizeResponse.Permalink}");
|
|
|
Log(LogSeverityEnum.Debug, $"Shortcode: {finalizeResponse.Shortcode}");
|
|
Log(LogSeverityEnum.Debug, $"Shortcode: {finalizeResponse.Shortcode}");
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|