I've wanted to remind you to upgrade
swfobject.js, but reading again my last post, I think I should put my requests in a short list for easier reading:
1) Allow uploading more than one transparent (probably also animated) GIF at a time. Or at least officialy don't let it accept more than one such file at a time.
2) Allow replacing non JPG files.
3) Allow uploading non JPG files not directly (e.g. via FTP).
And a request I've forgotten to mention in the last post:
4) Allow uploading and replacing non JPG files for thumbnails.
Finally, here's a request which is a lower priority as it's probably harder to accomplish:
4) Allow replacing files not directly (e.g. via FTP). I suggest to use the standard upload menu but only allow one file plus fill up in advance the already known parameters (title, description, etc.).
I do have more advanced requests (like a template for remote FLV files instead of hardcoded embed link), but the aforementioned things must be taken care of first (except for 4) before brand new features are added.
Quote by: LWCI was thinking more about SVN.
I still hope this time around it would be a group plugin and avoid the thus avoid current situation. I even already have Geeklog projects in SourceForge so it's not a big deal adding one more listing. But it's almost half a year later so I decided to come through with my patch for
download.php (makes it possible to both open files and not just save them and save them their real name):
Text Formatted Code
// custom code - start
$indirect_view = true;
$undirect_mime_types = array('x-msdownload', 'vnd.ms-excel', 'octet-stream');
$the_mime_types = explode("/", $mime_type);
if (($the_mime_types[0] == 'image') || ($the_mime_types[0] == 'application' && !in_array($the_mime_types[1], $undirect_mime_types)))
$indirect_view = false;
if ($indirect_view) {
// custom code - end
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0,pre-check=0");
header("Cache-Control: private",false);
// custom code - start
}
// custom code - end
header("Content-type:" . $mime_type);
// custom code - start
if ($indirect_view) {
// custom code - end
header("Content-Disposition: attachment; filename=\"" . $filename . "\";");
header("Content-Transfer-Encoding: binary");
// custom code - start
} else
header("Content-Disposition: inline; filename=\"" . $filename . "\";");
// custom code - end
If you add a global setting and a personal one, I can re-program it to take them into account.