|
@@ -71,6 +71,11 @@
|
|
case 'zip': $content_type = 'application/zip'; break;
|
|
case 'zip': $content_type = 'application/zip'; break;
|
|
default: $content_type = 'application/octet-stream'; break;
|
|
default: $content_type = 'application/octet-stream'; break;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //show the image inline when the action is not set
|
|
|
|
+ if (empty($action) && ($content_type == 'image/jpeg' || $content_type == 'image/png' || $content_type == 'image/gif')) {
|
|
|
|
+ $action = 'download-inline';
|
|
|
|
+ }
|
|
|
|
|
|
switch ($action) {
|
|
switch ($action) {
|
|
case 'download':
|
|
case 'download':
|
|
@@ -160,4 +165,4 @@
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-?>
|
|
|
|
|
|
+?>
|