Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

File Upload – Photo attachment link

$
0
0

Replies: 0

There is a file upload with is for uploading photos.

I am using the below file $path_info[‘url’] so that the photo will display in SF Contact Lead template.

add_filter( ‘gform_upload_path’, ‘change_upload_path’, 10, 2 );
function change_upload_path( $path_info, $form_id ) {
$path_info[‘path’] = ‘/home/domain/public_html/wp-content/uploads/photos/’;
$path_info[‘url’] = ‘<img src=”http://www.domain.com/wp-content/uploads/photos/’;
return $path_info;
}

However, due to this, the photo link does not work properly. Following URL code is added to the correct link: http://www.domain.com/wp-admin/%3Cimg%20src=%22

Complete Link
http://www.domain.com/wp-admin/%3Cimg%20src=%22http://www.domain.com/wp-content/uploads/vip_uploads/photo.jpg

Is there a way to upload a photo and show in Contact Lead template as a photo and have the photo link also work in Entries and Email notification?

Thanks for your help.

  • This topic was modified 20 minutes ago by phillipian. Reason: corrections

Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>