Bugs
Done

Downloaded filename is taken from the link label instead of the original filename

What went wrong?

I'm using the Anytwo local API to upload MP4 videos and insert links to these files into the body of a page using Markdown.

For example, my Python script generates the following Markdown link:

return f"[Vidéo MP4 (fichier Anytwo)]({uri})"

Where uri points to a video uploaded to Anytwo, using an any://f/... URI.

The original uploaded file is named something like example.mp4.

Actual behavior:

When clicking the link and downloading the video through Anytwo, the downloaded file is named Vidéo MP4 (fichier Anytwo), without the .mp4 extension.

Anytwo appears to use the Markdown link label as the downloaded filename instead of the actual filename stored with the file.

What should happen?

The link label should only determine the text displayed in the page.

The downloaded file should retain its original filename, including its extension (example.mp4), regardless of the link label.

For example:

  • Uploaded filename: example.mp4
  • Markdown link: [My video](any://f/...)
  • Displayed label: My video
  • Expected downloaded filename: example.mp4
  • Actual downloaded filename: My video

This behavior causes downloaded files to lose their original names and potentially their extensions, making them harder to identify or open.

It also forces API integrations to use the original filename as the link label, which should not be necessary.

The filename and the link label are two different pieces of information and should remain independent.

0 Comments

Sign in to comment

No comments yet. Be the first to share your thoughts.