.link() with public collection with versions points to wrong file name
See original GitHub issueI’m having an issue:
- Give an expressive description of what is went wrong
When generating versions for a public collection and then requesting a .link() for such a version the file name does not match the file name used on disk. Example:
"small-avif": {
extension: "avif",
path: "/home/.../data/images/nG69zE5Mr5X7KLvci_small.avif",
size: 8038,
sizeName: "small",
type: "image/avif"
}
}
yields https://.../images/small-avif-nG69zE5Mr5X7KLvci.avif - which I have mapped to the correct folder, but the file name is off.
- Version of
Meteor-Filesyou’re experiencing this issue 2.0.0 - Version of
Meteoryou’re experiencing this issue 1.11.1 - Where this issue appears? OS (Mac/Win/Linux)? Browser name and its version? Ubuntu Server 18.04
- Is it Client or Server issue? Server
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Link returned for a file by SHARE is wrong, points to a parent folder ...
Hi,. I'm experiencing the same behavior. I find it to happen when changing the name of the parent directory. Then, the link to...
Read more >How does Git handle symbolic links? - Stack Overflow
I would assume that it leaves it as a symbolic link until the file is deleted and then if you pull the file...
Read more >Rename a file, folder, or link in a document library
Open the document library and hover over the file you want to rename. File name highlighted in Document Library. Click the ellipses (...)...
Read more >Using versioning in S3 buckets - AWS Documentation
Versioning in Amazon S3 is a means of keeping multiple variants of an object in the same bucket. You can use the S3...
Read more >Links in HTML documents - W3C
Syntax of anchor names; Nested links are illegal; Anchors with the id attribute ... The link starts at the "source" anchor and points...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I write the files straight to the FS with sharp
sharpHandle.toFile(targetPath)As for
.link)calls, I’m using this snippetBut I guess you’re explanation of how the expected filename is derived from the version key explains everything. I feel like the documentation could be more explicit about this and/or it would be nice to be able to customize this behabior – for now I’ll stick to rewriting the requests with a RegEx in nginx!
Hello @neopostmodern, any updates on your end?