missing filename in uploaded photos (we don't really use this, but we will need to have a filename to export via DAV or API and the original filename would be the most likely choice).
This commit is contained in:
@@ -77,6 +77,7 @@ function photo_upload($channel, $observer, $args) {
|
||||
$filesize = intval($_FILES['userfile']['size']);
|
||||
$type = $_FILES['userfile']['type'];
|
||||
}
|
||||
|
||||
if (! $type)
|
||||
$type=guess_image_type($filename);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user