Title: Email Link
Last modified: November 8, 2020

---

# Email Link

 *  [summitwinterguard](https://wordpress.org/support/users/summitwinterguard/)
 * (@summitwinterguard)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/email-link-26/)
 * The link in the notification email doesn’t work. It is bad link. It comes through
   like this: [http://long-gone.net/httpd.www/spartanlegion/wp-content/uploads/students/concert_band/2021/Equal-Housing-Logo.png](http://long-gone.net/httpd.www/spartanlegion/wp-content/uploads/students/concert_band/2021/Equal-Housing-Logo.png).
 * How do I get it to show the correct link? Or create a page with links to the 
   folder for another admin to quickly access all file sin the folder?

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

 *  Thread Starter [summitwinterguard](https://wordpress.org/support/users/summitwinterguard/)
 * (@summitwinterguard)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/email-link-26/#post-13641521)
 * Bumping question
 *  Plugin Author [nickboss](https://wordpress.org/support/users/nickboss/)
 * (@nickboss)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/email-link-26/#post-13648615)
 * Hi, %filepath% variable provides the path of the file in the web server’s file
   system, not the URL. It should be used only for emails sent to admins.
 * The URL is not currently supported as a variable. However it can be done with
   a plugin hook. Here it is:
 *     ```
       if (!function_exists('wfu_before_email_notification_handler')) {
       	function wfu_before_email_notification_handler($changable_data, $additional_data) {
       		$sep = ", ";
       		$fileurls = explode(",", $changable_data["filepath"]);
       		foreach ( $fileurls as $ind => $fileurl )
       			$fileurls[$ind] = rawurlencode(str_replace(ABSPATH, site_url()."/", trim($fileurl)));
       		$changable_data["message"] = str_replace("%fileurl%", implode($sep, $fileurls), $changable_data["message"]);
       		return $changable_data;
       	}
       	add_filter('wfu_before_email_notification', 'wfu_before_email_notification_handler', 10, 2); 
       }
       ```
   
 * You need to put it in functions.php file of your theme.
 * Then, user variable **%fileurl%**. It will be replaced by the URL of the file
   inside the email.
 * Nickolas

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

The topic ‘Email Link’ is closed to new replies.

 * ![](https://ps.w.org/wp-file-upload/assets/icon-256x256.png?rev=3252590)
 * [Iptanus File Upload](https://wordpress.org/plugins/wp-file-upload/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-file-upload/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-file-upload/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-file-upload/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-file-upload/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-file-upload/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [nickboss](https://wordpress.org/support/users/nickboss/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/email-link-26/#post-13648615)
 * Status: not resolved