#401: importer: truncate document title to allowed size

This commit is contained in:
bgamard 2020-05-06 13:56:45 +02:00
parent 3ec254e908
commit 7c72b5e69b

View File

@ -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
}