Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/support direct upload #27

Merged
merged 11 commits into from
Mar 1, 2017
Prev Previous commit
Next Next commit
Update direct upload API to new spec
  • Loading branch information
Roblinde committed Feb 23, 2017
commit ce7e258c1f78c66d99417e025388d807f9733ce7
82 changes: 0 additions & 82 deletions Contentful.Core/Configuration/FileJsonConverter.cs

This file was deleted.

3 changes: 2 additions & 1 deletion Contentful.Core/Models/File.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ namespace Contentful.Core.Models
/// <summary>
/// Represents information about the actual binary file of an <see cref="Asset"/>.
/// </summary>
[JsonConverter(typeof(FileJsonConverter))]
public class File
{
/// <summary>
Expand All @@ -28,10 +27,12 @@ public class File
/// <summary>
/// The url to upload this file from.
/// </summary>
[JsonProperty("upload")]
public string UploadUrl { get; set; }
/// <summary>
/// A reference to a SystemProperties metadata object with a type of upload.
/// </summary>
[JsonProperty("uploadFrom")]
public SystemProperties UploadReference { get; set; }
/// <summary>
/// Detailed information about the file stored by Contentful.
Expand Down