Abhinav
Abhinav

Reputation: 8168

Linux not allowing to download filename with spaces

I am not able to download the file whose filename has spaces in between them. Is there anything that can be done to make this work?

NOTE: From Windows Server,I am able to download

But from Linux Server I am not able to download

Ubuntu -Server is what I am using

<a target="_blank" href="http://www.somewebsite.com/68805/41/Junior (6).pdf" download="Junior (6).pdf">Download</a>

error: Failed-Server Problem

Upvotes: 0

Views: 69

Answers (1)

Fredrik
Fredrik

Reputation: 764

It should be

<a target="_blank" href="http://www.somewebsite.com/68805/41/Junior%20(6).pdf" download="Junior%20(6).pdf">Download</a>

Difference is the URL-encoded space.

Upvotes: 3

Related Questions