File Upload bug
-
If a file with the same name is uploaded at the same time, the file will be overwritten.
Please correctcopy( $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 ] ) : '';
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘File Upload bug’ is closed to new replies.