Skip to content

Commit

Permalink
Merge pull request #29 from RichLogan/hotfix/file-id-#22
Browse files Browse the repository at this point in the history
Set ID correctly in SparkFile from URI constructor
  • Loading branch information
RichLogan authored Feb 3, 2017
2 parents 9521b3a + 9d0370c commit f6e2497
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SparkUnity/Assets/Cisco/Spark/SparkFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public SparkFile(string id)
public SparkFile(Uri url)
{
UploadUrl = url;
Id = UploadUrl.AbsoluteUri.Split(new string[] { "contents/" }, StringSplitOptions.None)[1];
}

/// <summary>
Expand Down

0 comments on commit f6e2497

Please sign in to comment.