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.

UploadConfig.cs 845B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace Teknik.Configuration
  6. {
  7. public class UploadConfig
  8. {
  9. // Max upload size in bytes
  10. public int MaxUploadSize { get; set; }
  11. // Location of the upload directory
  12. public string UploadDirectory { get; set; }
  13. // File Extension for saved files
  14. public string FileExtension { get; set; }
  15. public int UrlLength { get; set; }
  16. public bool IncludeExtension { get; set; }
  17. public UploadConfig()
  18. {
  19. SetDefaults();
  20. }
  21. public void SetDefaults()
  22. {
  23. MaxUploadSize = 100000000;
  24. UploadDirectory = string.Empty;
  25. FileExtension = "enc";
  26. UrlLength = 6;
  27. IncludeExtension = true;
  28. }
  29. }
  30. }