diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-01 10:31:15 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-01 10:31:15 +0000 |
commit | 8b81ef709679d69ce47440fd48c76a0e3f6f903b (patch) | |
tree | 868a85571ff308b230f254d67b684b23533359a2 /image.php | |
parent | c7532033e56da3c007dba6144ca6c8884fac2781 (diff) | |
download | ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.tar.gz ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.tar.bz2 ampache-8b81ef709679d69ce47440fd48c76a0e3f6f903b.zip |
I am pretty sure the find art should work correctly now, it doesnt do id3tags yet due to some... complications.. it does however now read the folder images which is a new feature.
Diffstat (limited to 'image.php')
-rw-r--r-- | image.php | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -55,7 +55,17 @@ switch ($_REQUEST['type']) { break; // If we need to pull the data out of the session case 'session': + $key = scrub_in($_REQUEST['image_index']); + $image = get_image_from_source($_SESSION['form']['images'][$key]); + + $mime = $_SESSION['form']['images'][$key]['mime']; + $data = explode("/",$mime); + $extension = $data['1']; + + header("Content-type: $mime"); + header("Content-Disposition: filename=" . $key . "." . $extension); + echo $image; break; default: $album = new Album($_REQUEST['id']); |