File Name got changed when downloaded

Hi Team,

I wanted to place a functionality of downloading this file(with name current catalog.pdf) upon click of the button. The same went well but later I realized that the downloaded file name got changed to the URL path of media folder where the file was placed. Any way to solve this issue?

Initial File Name: current catalog.pdf
File name got changed to: http___localhost_abcdef_wp-content_uploads_2018_04_current-catalog

Short code Used: 
[button title="Product Catalog" link="" target="_blank" align="" icon="icon-download" icon_position="" color="" font_color="" size="2" full_width="" class="" download="http://localhost/abcdef/wp-content/uploads/2018/04/current-catalog.pdf" rel="" onclick=""] 

Comments

Sign In or Register to comment.