I want to make a simple "download" link and force the visitor download a pdf.

I've put the file field as a hidden field in view and put the formatter to "File force: url to file". Now I get a token [fieldname_pdf] that I rewrite as the link path in another field. The problem is that in front of the url there are 6 times %20 and two more %20 after the url. In addition to this it repeats "&Download=1" adds two more %20 %20 and _

so if my url is http://mysite.com/paper.pdf it turnes into %20%20%20%20%20%20http://mysite.com/system/files_force/paper.pdf?download=1%20%20?&downloa...

Am I doing something wrong or any good ideas about how to fix this?

Comments

matsbla’s picture

Status: Active » Closed (duplicate)