The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UploadAPIv1Model.cs 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using Microsoft.AspNetCore.Http;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using Teknik.Utilities;
  7. namespace Teknik.Areas.API.V1.Models
  8. {
  9. public class UploadAPIv1Model : BaseAPIv1Model
  10. {
  11. public IFormFile file { get; set; }
  12. public string contentType { get; set; }
  13. public bool encrypt { get; set; }
  14. public int expirationLength { get; set; }
  15. public ExpirationUnit expirationUnit { get; set; }
  16. public bool saveKey { get; set; }
  17. public string key { get; set; }
  18. public int keySize { get; set; }
  19. public string iv { get; set; }
  20. public int blockSize { get; set; }
  21. public bool genDeletionKey { get; set; }
  22. public UploadAPIv1Model()
  23. {
  24. file = null;
  25. contentType = null;
  26. encrypt = true;
  27. expirationLength = 1;
  28. expirationUnit = ExpirationUnit.Never;
  29. saveKey = true;
  30. key = null;
  31. keySize = 0;
  32. iv = null;
  33. blockSize = 0;
  34. genDeletionKey = false;
  35. }
  36. }
  37. }