Comments (8)
Interesting ! indeed I didn't take the time to dig deeper and try other replacement strings, seems you're right. What a coincidence !
I think it'd make more sense to trim the space, but I guess that's just a dev choice not a bug, guess we can close.
thanks for the support!
from n8n.
Hey @Nahiiko
In the example you provided do you actually have an extra space at the end of the file extension or is that just a typo?
What is the actual value of json.Projects
?
from n8n.
Hi @Joffcom
Yeah there is a space at the end, which is getting replaced by the underscore once you download the file (weirdly not on the UI), which is exactly the issue here.
json.Projects doesn't matter here, as you can see in my reproduction, it works with '{{hello world}}.xlsx '-> hello_world.xlsx_
from n8n.
Hi @Nahiiko
Seem your issue is related to your OS, Mime Type of your xlsx file is 'application/x-cfb'. This is on my server, file name works normally:
My server:
OS: Debian 11, n8n 1.23.0 with docker
from n8n.
I'm running n8n inside docker on a synology NAS so I don't think that's the issue but here's the stack:
postgres:15.4
n8nio/n8n:latest
Now that I think of it, I do run with "N8N_DEFAULT_BINARY_DATA_MODE: filesystem" enabled, could that be the differentiator here ?
from n8n.
I don't think filesystem should matter, I do however still need to create a file with a space at the end of the extension to see what happens although that seems like it would cause other issues as it shouldn't be there anyway.
I will see if I can reproduce this now.
from n8n.
Alright I have given this a test and the replaceAll()
appears to have nothing to do with this, If you just have a space at the end of a filename we will add the _
to it instead of a space. This is likely because a trailing space in a filename will cause issues with some operating systems (Windows).
Based on this I believe this is protecting some users and there is actually no bug here as the alternative would be to remove the space from the end or refuse to download the file and throw an error.
What do you think @Nahiiko?
from n8n.
Hey @Nahiiko,
I think for now we can move this to closed and we can chat internally and look at what other projects do to handle it.
from n8n.
Related Issues (20)
- Bug: Gmail Node is not saving parameters HOT 4
- Post Upgrade to v1.39.1 - Airtable Node Output Fields BROKEN HOT 6
- OpenAI Assistant & gpt4-o HOT 9
- OpenAI Assistant creating new thread everytime HOT 8
- Accessing Ticket Object ID in Hubspot Trigger Node HOT 3
- 1.41.0 - Bug: Number of Executions Shown in Side Panel is Limited to 10 at a Time HOT 6
- ERROR: The DNS server returned an error, perhaps the server is offline HOT 2
- OpenAI Assistant - The requested model ‘gpt-4o’ cannot be used with the Assistants API in v1 HOT 1
- HTTP Request / OpenSSL Error HOT 3
- "Convert to HTML Table" Does Not Add the "Row Attributes" Option HOT 2
- workflows.map is not a function HOT 2
- Renaming the node by leaving the name field empty causes unexpected behavior HOT 5
- Can you add options for multi-branch parallel execution and for nodes to continue the workflow execution even if an error occurs? HOT 1
- Error: HTTP status 403 HOT 7
- Node Max Tries / Wait Values Limits Too Low HOT 7
- Ask AI is not present in the Code node on self-hosted Docker ver 1.41.1 HOT 3
- Pagination Does Not Reset When Re-Testing Node HOT 1
- NPM - Esm modules are not supported, dynamic (async) import fails HOT 6
- http node executes "successfully" but error is returned HOT 3
- Webhook only work in test mode... HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from n8n.