CrazyIter_Bin hace 5 meses
padre
commit
db3b420e56
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      TEAMModelOS.Extension/IES.Exam/IES.ExamServer/Program.cs

+ 5 - 0
TEAMModelOS.Extension/IES.Exam/IES.ExamServer/Program.cs

@@ -104,6 +104,11 @@ namespace IES.ExamServer
             contentTypeProvider.Mappings[".mp3"] = "audio/mpeg";
             contentTypeProvider.Mappings[".mp3"] = "audio/mpeg";
             contentTypeProvider.Mappings[".json"] = "application/json";
             contentTypeProvider.Mappings[".json"] = "application/json";
             contentTypeProvider.Mappings[".pdf"] = "application/pdf";
             contentTypeProvider.Mappings[".pdf"] = "application/pdf";
+            string packagePath = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "package");
+            if (!Directory.Exists(packagePath))
+            {
+                Directory.CreateDirectory(packagePath);
+            }
             app.UseStaticFiles(new StaticFileOptions
             app.UseStaticFiles(new StaticFileOptions
             {
             {
                 FileProvider = new PhysicalFileProvider(
                 FileProvider = new PhysicalFileProvider(