Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

file name is incorrect when I use pupeeteer to save file

  • Nuɖoɖo aɖeke o
  • 0 masɔmasɔ sia le wosi
  • 42 views

Hi

Recently, I have been testing the functionality of my website using Puppeteer, but I found an issue with the file names when operating the Firefox browser through Puppeteer. When the user clicks the download button, my JS code generates a series of special file names. However, when I use Puppeteer, the file names seem to be truncated. Additionally, I have configured the BIDI protocol while using Puppeteer.

For example: When I manually open the firfox browser and click download button, the file name I get is ANTLMonitoring_MRBTS-530377530377530377_Wroclaw_class._2!__________+-=~,*@#$^&*()¥'.{}[]*;中文Приве..*TEST_123_20251028-0409.csv But when I perform the same steps using Puppeteer, the downloaded file name is ANTLMonitoring_MRBTS-530377530377530377_Wroclaw_class._2!__________`+-=~,_@#$^&_().csv (puppeteer)

Comparison: ANTLMonitoring_MRBTS-530377530377530377_Wroclaw_class._2!__________`+-=~,_@#$^&_().csv (puppeteer) ANTLMonitoring_MRBTS-530377530377530377_Wroclaw_class._2!__________+-=~,*@#$^&*()¥'.{}[]_;中文Приве.._TEST_123_20251028-0409.csv (Manual)

In both manual testing and Puppeteer testing, I used the default browser configuration. The operating system tested is Windows 11, and the browser version is 144.0 (64-bit). Can anyone help me with this issue? Thank you very much!

Hi Recently, I have been testing the functionality of my website using Puppeteer, but I found an issue with the file names when operating the Firefox browser through Puppeteer. When the user clicks the download button, my JS code generates a series of special file names. However, when I use Puppeteer, the file names seem to be truncated. Additionally, I have configured the BIDI protocol while using Puppeteer. For example: When I manually open the firfox browser and click download button, the file name I get is ANTLMonitoring_MRBTS-530377530377530377_Wroclaw_class._2!__________+-=~,*@#$^&*()¥'.{}[]*;中文Приве..*TEST_123_20251028-0409.csv But when I perform the same steps using Puppeteer, the downloaded file name is ANTLMonitoring_MRBTS-530377530377530377_Wroclaw_class._2!__________`+-=~,_@#$^&_().csv (puppeteer) Comparison: ANTLMonitoring_MRBTS-530377530377530377_Wroclaw_class._2!__________`+-=~,_@#$^&_().csv (puppeteer) ANTLMonitoring_MRBTS-530377530377530377_Wroclaw_class._2!__________+-=~,*@#$^&*()¥'.{}[]_;中文Приве.._TEST_123_20251028-0409.csv (Manual) In both manual testing and Puppeteer testing, I used the default browser configuration. The operating system tested is Windows 11, and the browser version is 144.0 (64-bit). Can anyone help me with this issue? Thank you very much!

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.