mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57:57 +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({
|
request.put({
|
||||||
url: prefs.importer.baseUrl + '/api/document',
|
url: prefs.importer.baseUrl + '/api/document',
|
||||||
form: {
|
form: {
|
||||||
title: file.replace(/^.*[\\\/]/, ''),
|
title: file.replace(/^.*[\\\/]/, '').substring(0, 100),
|
||||||
language: 'eng',
|
language: 'eng',
|
||||||
tags: prefs.importer.tag === '' ? undefined : prefs.importer.tag
|
tags: prefs.importer.tag === '' ? undefined : prefs.importer.tag
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user