From ba0bf851f78584e9ac6c337144c6fa34bf71d61a Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Sat, 20 Jul 2024 20:43:20 -0400 Subject: [PATCH] #93: Saving uploaded song to a temporary location for processing --- .gitignore | 2 ++ Controllers/v1/SongDataController.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 80d31a8..1488bbd 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ /Icarus.txt /appsettings.json /appsettings.Development.json +appsettings.Development.json +appsettings.json diff --git a/Controllers/v1/SongDataController.cs b/Controllers/v1/SongDataController.cs index c19da0e..c27ccd3 100644 --- a/Controllers/v1/SongDataController.cs +++ b/Controllers/v1/SongDataController.cs @@ -131,6 +131,8 @@ public class SongDataController : BaseController _logger.LogInformation($"Song title: {song.Title}"); var fileType = meta.FileExtensionType(tmpSong.SongPath()); + song.Filename = tmpSong.Filename; + song.SongDirectory = tmpSong.SongDirectory; switch (fileType) {