Remove debug logging and add file size limit

This commit is contained in:
Andras Schmelczer 2025-01-08 22:25:04 +00:00
parent 92765f7a8a
commit 5582691cf7
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
5 changed files with 63 additions and 48 deletions

View file

@ -252,6 +252,22 @@ export class SyncSettingsTab extends PluginSettingTab {
)
);
new Setting(containerEl)
.setName("Maximum file size to be uploaded (MB)")
.setDesc(
"Set the maximum file size that can be uploaded to the server. Files larger than this size will be ignored."
)
.addSlider((slider) =>
slider
.setLimits(0, 32, 1)
.setDynamicTooltip()
.setInstant(false)
.setValue(this.database.getSettings().maxFileSizeMB)
.onChange(async (value) =>
this.database.setSetting("maxFileSizeMB", value)
)
);
new Setting(containerEl)
.setName("Enable sync")
.setDesc(