Skip to content

Commit fd73a8c

Browse files
committed
comments
1 parent ecfe836 commit fd73a8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MyApp/Configure.AppHost.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ public void Configure(IWebHostBuilder builder) => builder
1515
context.Configuration.GetSection(nameof(AppConfig)).Bind(AppConfig.Instance);
1616
services.AddSingleton(AppConfig.Instance);
1717

18-
// Enable Managed File Uploads: https://docs.servicestack.net/locode/files-overview
18+
// Optional: Enable Managed File Uploads: https://docs.servicestack.net/locode/files-overview
1919
var fileFs = new FileSystemVirtualFiles(context.HostingEnvironment.ContentRootPath);
2020
services.AddPlugin(new FilesUploadFeature(
21-
// User Writable, public readable
21+
// User writable, public readable
2222
new UploadLocation("pub",
2323
fileFs,
2424
readAccessRole: RoleNames.AllowAnon,
2525
maxFileBytes: 10 * 1024 * 1024,
2626
resolvePath:ctx => $"pub/{DateTime.UtcNow.ToUnixTime()}/{ctx.FileName}"),
27-
// User Writable, User Readable
27+
// User writable, User readable
2828
new UploadLocation("secure",
2929
fileFs,
3030
maxFileBytes: 10 * 1024 * 1024,

0 commit comments

Comments
 (0)