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.

UploadController.cs 683B

123456789101112131415161718192021222324
  1. using Luticate2.Utils.Controllers;
  2. using Luticate2.Utils.Dbo.Basic;
  3. using Microsoft.Extensions.Options;
  4. using WebApiUtils.Business;
  5. using WebApiUtils.Dbo;
  6. namespace WebApiUtils.Controllers
  7. {
  8. public class UploadController : LuFsFilesCrudController<UploadBusiness>
  9. {
  10. private readonly AppConfigDbo _options;
  11. public UploadController(IOptions<LuUtilsOptionsDbo> luUtilsOptionsDbo, IOptions<AppConfigDbo> options,
  12. UploadBusiness business) : base(luUtilsOptionsDbo, business)
  13. {
  14. _options = options.Value;
  15. }
  16. protected override string GetBasePath()
  17. {
  18. return _options.UploadDir;
  19. }
  20. }
  21. }