Skip to content

Commit 3e00274

Browse files
committed
change default file name size
1 parent cfac4af commit 3e00274

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

disciple-tools-media-api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function list_supported_connection_types(): array {
3636
];
3737
}
3838

39-
public static function generate_random_string( $length = 16 ): string {
39+
public static function generate_random_string( $length = 112 ): string {
4040
$random_string = '';
4141
$keys = array_merge( range( 0, 9 ), range( 'a', 'z' ), range( 'A', 'Z' ) );
4242
for ( $i = 0; $i < $length; $i++ ){

disciple-tools-media-filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function dt_media_connections_obj_upload( $response, $media_connection_id, $key_
4949
if ( isset( $args['auto_generate_key'] ) && !$args['auto_generate_key'] && !empty( $args['default_key'] ) ) {
5050
$key = $args['default_key'];
5151
} else {
52-
$key = $key_prefix . Disciple_Tools_Media_API::generate_random_string( 24 );
52+
$key = $key_prefix . Disciple_Tools_Media_API::generate_random_string( 112 );
5353
}
5454

5555
// If required, capture uploading file's extension.

0 commit comments

Comments
 (0)