Skip to content

Commit 28d90a7

Browse files
committed
docs(settings): clarify Javadocs on TabularIngestSizeLimit usage #11639
1 parent 37df103 commit 28d90a7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/main/java/edu/harvard/iq/dataverse/settings/SettingsServiceBean.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,14 @@ public enum Key {
303303
*/
304304
@Deprecated(since = "6.2", forRemoval = true)
305305
SystemEmail,
306-
/* size limit for Tabular data file ingests */
307-
/* (can be set separately for specific ingestable formats; in which
308-
case the actual stored option will be TabularIngestSizeLimit:{FORMAT_NAME}
309-
where {FORMAT_NAME} is the format identification tag returned by the
310-
getFormatName() method in the format-specific plugin; "sav" for the
311-
SPSS/sav format, "RData" for R, etc.
312-
for example: :TabularIngestSizeLimit:RData */
306+
307+
/**
308+
<p>Size limit (in bytes) for tabular file ingest. Accepts either a single numeric value or JSON for per-format control.</p>
309+
<p>Values: -1 (or absent) = no limit, 0 = disable ingest, >0 = byte threshold, or JSON object.</p>
310+
<p>JSON object allows setting a "default" (same as single byte value) and override limits per-format for: CSV, DTA, POR, Rdata, SAV, XLSX.
311+
Example: <code>{"default": "536870912", "CSV": "0", "Rdata": "1000000"}</code></p>
312+
<p>Format names are case-insensitive. Invalid settings disable ingest until corrected.</p>
313+
*/
313314
TabularIngestSizeLimit,
314315
/* Validate physical files in the dataset when publishing, if the dataset size less than the threshold limit */
315316
DatasetChecksumValidationSizeLimit,

0 commit comments

Comments
 (0)