mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
🖼️ fix: Clipboard Files & File Name Issues (#2015)
* fix: ensure image handling fetchs image to base64 for multiple images * fix: append file_id's when writing uploaded files * feat: timestamp files uploaded from clipboard * chore: add a different fileid+name separator
This commit is contained in:
parent
18edd2660b
commit
40e884b3ec
5 changed files with 31 additions and 18 deletions
|
|
@ -185,7 +185,12 @@ const processImageFile = async ({ req, res, file, metadata }) => {
|
|||
const source = req.app.locals.fileStrategy;
|
||||
const { handleImageUpload } = getStrategyFunctions(source);
|
||||
const { file_id, temp_file_id, endpoint } = metadata;
|
||||
const { filepath, bytes, width, height } = await handleImageUpload({ req, file, endpoint });
|
||||
const { filepath, bytes, width, height } = await handleImageUpload({
|
||||
req,
|
||||
file,
|
||||
file_id,
|
||||
endpoint,
|
||||
});
|
||||
const result = await createFile(
|
||||
{
|
||||
user: req.user.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue