Skip to content

Commit

Permalink
Use uuid for photo name (allow photos with same filename to be upload…
Browse files Browse the repository at this point in the history
…ed in a job)
  • Loading branch information
kev-le committed Mar 12, 2024
1 parent 505fccd commit 79c280d
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 @@ -104,7 +104,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 79c280d

Please sign in to comment.