File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments