mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Add unique to stream photos to avoid duplicate and broken image
See HS Ticket # /135605447/1648/
This commit is contained in:
@@ -31,7 +31,7 @@ if(isset($_FILES[$id]['name'])) {
|
||||
$ret['error'] = $error;
|
||||
|
||||
} else {
|
||||
|
||||
$file = "stream_photo_".md5($file)."_".uniqid();
|
||||
$ret[] = $ultimatemember->files->new_image_upload_temp( $temp, $file, um_get_option('image_compression') );
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user