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.

UploadSettings.cs 872B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using Teknik.Utilities;
  9. namespace Teknik.Areas.Users.Models
  10. {
  11. public class UploadSettings
  12. {
  13. [Column("Encrypt")]
  14. public bool Encrypt { get; set; }
  15. [Column("ExpirationLength")]
  16. public int ExpirationLength { get; set; }
  17. [Column("ExpirationUnit")]
  18. public ExpirationUnit ExpirationUnit { get; set; }
  19. [Column("MaxUploadStorage")]
  20. public long? MaxUploadStorage { get; set; }
  21. public UploadSettings()
  22. {
  23. Encrypt = false;
  24. ExpirationLength = 1;
  25. ExpirationUnit = ExpirationUnit.Never;
  26. MaxUploadStorage = null;
  27. }
  28. }
  29. }