Title: Dowload link names
Last modified: August 21, 2016

---

# Dowload link names

 *  Resolved [write4andrei](https://wordpress.org/support/users/write4andrei/)
 * (@write4andrei)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/dowload-link-names/)
 * Hello,
 * Nice work on this great plugin. I had a small problem after updatind top the 
   latest version. When clicking on a file link it downloads with a generic name–
   as ‘download’ for example. When i use right click and save as it works just fine.
 * Have i missed a setting maybe?
 * Thanks in advance,
 * Andrei
 * [https://wordpress.org/plugins/file-away/](https://wordpress.org/plugins/file-away/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/dowload-link-names/#post-4843808)
 * It shouldn’t be. I just checked the latest version install on one of my sites
   and it downloads the full file name, and I checked the output HTML and the link
   says
    `<a href="www.url.com/actualfilename.pdf" download="actualfilename.pdf"
   >`
 * Can you give me detailed specifics about which type/style you’re using, whether
   it’s doing this for a certain file type, or for all file types, whether the problem
   is specific to one browser, etc.
 * Thanks.
 *  Thread Starter [write4andrei](https://wordpress.org/support/users/write4andrei/)
 * (@write4andrei)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/dowload-link-names/#post-4843817)
 * Hello again. Thanks for your fast reply. i use the following code:
 * <?php echo do_shortcode( ‘[attachaway type=list]’ ) ?>
 * And get the – download=”.” – code in html – for all file types.
 * In FF and chrome i need right click. in IE it works fine.
 * Thanks.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/dowload-link-names/#post-4843825)
 * Ah. I haven’t checked attachaway in a long time. I’ll check it now.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/dowload-link-names/#post-4843837)
 * If you’re comfortable editing the source code, navigate to:
 * /wp-content/plugins/file-away/includes/ and in the includes directory open up
   attach-away.php
 * Go to line 90. Replace this line:
 * `$filename = str_replace('.'.$ext, '', $basename); $filename = str_replace (array('
   ~', '-', '--', '_', '.', '*'), ' ', $filename);`
 * with this line:
 * `$rawname = str_replace('.'.$ext, '', $basename); $filename = str_replace (array('
   ~', '-', '--', '_', '.', '*'), ' ', $rawname); $oext = $ext;`
 * That should resolve your issue, and if so, it will be included in the next update.
 * If you’re not comfortable editing the source code, I’ll try to get the update
   out as soon as possible, but it may be a few days. Let me know.
 *  Thread Starter [write4andrei](https://wordpress.org/support/users/write4andrei/)
 * (@write4andrei)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/dowload-link-names/#post-4843847)
 * I just checked the new line of code and it does solve the issue.
 * Thank you very much.
 * Andrei
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/dowload-link-names/#post-4843964)
 * Thanks for doing that for me! The new version (1.8) is now up, with this fix 
   included.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Dowload link names’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-away_e3e2e1.svg)
 * [File Away](https://wordpress.org/plugins/file-away/)
 * [Support Threads](https://wordpress.org/support/plugin/file-away/)
 * [Active Topics](https://wordpress.org/support/plugin/file-away/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-away/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-away/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [thomstark](https://wordpress.org/support/users/thomstark/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/dowload-link-names/#post-4843964)
 * Status: resolved