diff options
author | friendica <info@friendica.com> | 2014-01-22 23:54:14 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-22 23:54:14 -0800 |
commit | bf8e73ca739d60a9c80acb007d794d0a80c3e5ac (patch) | |
tree | f30b68e1dda2e25799ec4765d3d24db52dea0014 /include/photos.php | |
parent | bc98f4ddf4cdfa655385c705d97fa006ada9c49f (diff) | |
download | volse-hubzilla-bf8e73ca739d60a9c80acb007d794d0a80c3e5ac.tar.gz volse-hubzilla-bf8e73ca739d60a9c80acb007d794d0a80c3e5ac.tar.bz2 volse-hubzilla-bf8e73ca739d60a9c80acb007d794d0a80c3e5ac.zip |
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).
Diffstat (limited to 'include/photos.php')
-rw-r--r-- | include/photos.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/photos.php b/include/photos.php index eebddd393..82af4aaeb 100644 --- a/include/photos.php +++ b/include/photos.php @@ -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); |