Skip to content

Commit

Permalink
Revert photo object name to uuid when uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
kev-le committed Sep 24, 2024
1 parent 283129f commit e71b1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StudioClient/Photo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private async Task<dynamic> 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;
Expand Down

0 comments on commit e71b1ce

Please sign in to comment.