mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
⚡ Minor changes to directories in binary data
This commit is contained in:
parent
d65e8ee73b
commit
ddce679569
|
@ -103,7 +103,9 @@ export async function prepareBinaryData(binaryData: Buffer, filePath?: string, m
|
||||||
|
|
||||||
const filePathParts = path.parse(filePath as string);
|
const filePathParts = path.parse(filePath as string);
|
||||||
|
|
||||||
returnData.dir = filePathParts.dir;
|
if (filePathParts.dir !== '') {
|
||||||
|
returnData.directory = filePathParts.dir;
|
||||||
|
}
|
||||||
returnData.fileName = filePathParts.base;
|
returnData.fileName = filePathParts.base;
|
||||||
|
|
||||||
// Remove the dot
|
// Remove the dot
|
||||||
|
|
|
@ -157,9 +157,9 @@
|
||||||
<div class="label">File Name: </div>
|
<div class="label">File Name: </div>
|
||||||
<div class="value">{{binaryData.fileName}}</div>
|
<div class="value">{{binaryData.fileName}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="binaryData.dir">
|
<div v-if="binaryData.directory">
|
||||||
<div class="label">Directory: </div>
|
<div class="label">Directory: </div>
|
||||||
<div class="value">{{binaryData.dir}}</div>
|
<div class="value">{{binaryData.directory}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="binaryData.fileExtension">
|
<div v-if="binaryData.fileExtension">
|
||||||
<div class="label">File Extension:</div>
|
<div class="label">File Extension:</div>
|
||||||
|
|
|
@ -9,7 +9,7 @@ export interface IBinaryData {
|
||||||
data: string;
|
data: string;
|
||||||
mimeType: string;
|
mimeType: string;
|
||||||
fileName?: string;
|
fileName?: string;
|
||||||
dir?: string;
|
directory?: string;
|
||||||
fileExtension?: string;
|
fileExtension?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue