#24 upload limit in configration
This commit is contained in:
parent
a78cff9e1f
commit
0b3a30d55d
@ -28,7 +28,7 @@ namespace RMuseum.Services.Implementation
|
||||
try
|
||||
{
|
||||
SqliteConnectionStringBuilder connectionStringBuilder = new SqliteConnectionStringBuilder();
|
||||
connectionStringBuilder.DataSource = @"C:\Users\moham\AppData\Local\ganjoor\ganjoor.s3db";
|
||||
connectionStringBuilder.DataSource = Configuration.GetSection("LocalSqliteImport")["FilePath"];
|
||||
using (SqliteConnection sqliteConnection = new SqliteConnection(connectionStringBuilder.ToString()))
|
||||
{
|
||||
await sqliteConnection.OpenAsync();
|
||||
|
||||
@ -260,7 +260,7 @@ namespace RMuseum
|
||||
//upload limit for IIS
|
||||
services.Configure<IISServerOptions>(options =>
|
||||
{
|
||||
options.MaxRequestBodySize = 52428800; //50MB
|
||||
options.MaxRequestBodySize = int.Parse(Configuration.GetSection("IIS")["UploadLimit"]);
|
||||
});
|
||||
|
||||
|
||||
|
||||
@ -33,6 +33,12 @@
|
||||
"Password": "password",
|
||||
"From": "test@gmail.com"
|
||||
},
|
||||
"LocalSqliteImport": {
|
||||
"FilePath": "C:\\Users\\moham\\AppData\\Local\\ganjoor\\ganjoor.s3db"
|
||||
},
|
||||
"IIS": {
|
||||
"UploadLimit": "52428800"
|
||||
},
|
||||
"AudioMySqlServer": {
|
||||
"Server": "localhost",
|
||||
"Username": "adab",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user