Skip to content

Commit 705aa40

Browse files
authored
gw-gravity-forms-rename-uploaded-files.php: Fixed an issue where renamed multi-file uploads in Nested Forms became malformed after editing the child entry.
1 parent ca817aa commit 705aa40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gravity-forms/gw-gravity-forms-rename-uploaded-files.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ function rename_uploaded_files( $entry, $form ) {
9898

9999
$result = rename( $file, $renamed_file );
100100

101+
if ( ! $result ) {
102+
$renamed_files[] = $_file;
103+
continue;
104+
}
105+
101106
$renamed_url = $this->get_url_by_path( $renamed_file, $form['id'] );
102107
$renamed_files[] = $renamed_url;
103108

0 commit comments

Comments
 (0)