Support » Plugin: Contact Form 7 Database Addon - CFDB7 » File Upload bug

  • Resolved yasuoohya

    (@yasuoohya)


    If a file with the same name is uploaded at the same time, the file will be overwritten.
    Please correct

    copy( $file, $cfdb7_dirname . '/' . $time_now . '-' . basename( $file ));
    ↓
    copy( $file, $cfdb7_dirname . '/' . $time_now . '-' . $file_key . '-' . basename( $file ));

    $file_name = isset( $files[ $key ] ) ? $time_now . '-' . basename( $files[ $key ] ) : '';
    ↓
    $file_name = isset( $files[ $key ] ) ? $time_now . '-' . $key . '-' . basename( $files[ $key ] ) : '';

    • This topic was modified 2 years ago by yasuoohya.
    • This topic was modified 2 years ago by yasuoohya.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘File Upload bug’ is closed to new replies.