From e71b1ce25a8932b2968a2c088dcb0e91694357ce Mon Sep 17 00:00:00 2001 From: Kevin Le Date: Tue, 24 Sep 2024 13:19:46 -0700 Subject: [PATCH] Revert photo object name to uuid when uploading --- StudioClient/Photo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StudioClient/Photo.cs b/StudioClient/Photo.cs index 92718c4..19d3176 100644 --- a/StudioClient/Photo.cs +++ b/StudioClient/Photo.cs @@ -135,7 +135,7 @@ private async Task UploadPhoto(string photoPath, string modelName, long var photoObject = new JObject { - { "name", photoBasename }, + { "name", $"{Guid.NewGuid()}{fileExtension}" }, { "path", photoPath } }; if (modelName == "job") photoObject["job_id"] = modelId; else photoObject["profile_id"] = modelId;