-1

When I visit a public URL to my uploaded file, the filename includes the prefix, resulting in a super long filename.

Is there a way to download a file from the browser without including the prefix?

Maybe a setting or metadata to the uploaded file, or something?

My backend runs on NodeJS, if that's relevant.

vaid
  • 1,390
  • 12
  • 33

1 Answers1

0

In your webserver, you can override the default file name by writing a specific header

request.setHeader('Content-Disposition', 'filename="fileName.txt"');
guillaume blaquiere
  • 66,369
  • 2
  • 47
  • 76