File Upload – Photo attachment link
-
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=”https://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: https://www.domain.com/wp-admin/%3Cimg%20src=%22
Complete Link
https://www.domain.com/wp-admin/%3Cimg%20src=%22https://www.domain.com/wp-content/uploads/vip_uploads/photo.jpgIs 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.
- The topic ‘File Upload – Photo attachment link’ is closed to new replies.