Add unique to stream photos to avoid duplicate and broken image

See HS Ticket # /135605447/1648/
This commit is contained in:
champsupertramp
2015-11-12 00:06:21 +08:00
parent b26551c017
commit 4a37bef9dc
+1 -1
View File
@@ -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') );
}