Changeset 1324135
- Timestamp:
- 01/08/2016 06:18:58 PM (10 years ago)
- Location:
- gf-uploads-as-attachments/trunk
- Files:
-
- 2 edited
-
gforms-uploads-as-attachments.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gf-uploads-as-attachments/trunk/gforms-uploads-as-attachments.php
r1322952 r1324135 109 109 } 110 110 111 if ( empty( $url ) ) { 112 continue; 113 } 114 elseif ( $field['multipleFiles'] ) { 115 $uploaded_files = json_decode( stripslashes( $url ), true ); 116 foreach ( $uploaded_files as $uploaded_file ) { 117 $attachment = preg_replace( '|^(.*?)/gravity_forms/|', $upload_root, $uploaded_file ); 118 $attachments[] = $attachment; 119 } 120 } else { 121 $attachment = preg_replace( '|^(.*?)/gravity_forms/|', $upload_root, $url ); 122 $attachments[] = $attachment; 123 } 111 if ( ! empty( $url ) ) { 112 if ( $field['multipleFiles'] ) { 113 $uploaded_files = json_decode( stripslashes( $url ), true ); 114 foreach ( $uploaded_files as $uploaded_file ) { 115 $attachment = preg_replace( '|^(.*?)/gravity_forms/|', $upload_root, $uploaded_file ); 116 $attachments[] = $attachment; 117 } 118 } else { 119 $attachment = preg_replace( '|^(.*?)/gravity_forms/|', $upload_root, $url ); 120 $attachments[] = $attachment; 121 } 122 } 124 123 125 124 $notification['attachments'] = $attachments; -
gf-uploads-as-attachments/trunk/readme.txt
r1322959 r1324135 7 7 License: GPLv2 or later. 8 8 9 Adds the option to add all fileupload fields to notifications as attachments9 Adds the option to add all fileupload fields no notifications as attachments 10 10 11 11 == Description == … … 40 40 41 41 == Changelog == 42 43 #####1.0.1 44 - Fix for hanging AJAX processed forms. 45 42 46 #####1.0.0 43 47 Initial release
Note: See TracChangeset
for help on using the changeset viewer.