mirror of
https://github.com/sismics/docs.git
synced 2024-11-21 13:37:56 +01:00
#401: importer: truncate document title to allowed size
This commit is contained in:
parent
3ec254e908
commit
7c72b5e69b
@ -273,7 +273,7 @@ const importFile = (file, remove, resolve) => {
|
||||
request.put({
|
||||
url: prefs.importer.baseUrl + '/api/document',
|
||||
form: {
|
||||
title: file.replace(/^.*[\\\/]/, ''),
|
||||
title: file.replace(/^.*[\\\/]/, '').substring(0, 100),
|
||||
language: 'eng',
|
||||
tags: prefs.importer.tag === '' ? undefined : prefs.importer.tag
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user