preview = false;
}
- var imageTypes = ['image/png', 'image/jpeg', 'image/gif', 'image/svg+xml'];
+ var imageTypes = ['image/png', 'image/jpeg', 'image/gif', 'image/svg+xml',
+ 'image/bmp', 'image/webp', 'image/vnd.microsoft.icon'];
if ($.inArray(file.type, imageTypes) == -1) {
// We probably don't know how to show the file.
preview = false;
if (preview) {
blobAsDataURL(file, function (url) {
- var fileentry = $('<li class="attachment"></li>');
- fileentry.append($('<code>' + file.name + '</code>'));
+ var fileentry = $('<li>')
+ .attr('class', 'attachment')
+ .attr('style', 'text-align: center');
var img = $('<img>')
.attr('title', tooltip)
.attr('alt', tooltip)
.attr('src', url)
.attr('style', 'height: 120px');
fileentry.append(img);
+ fileentry.append($('<br><code>' + file.name + '</code>'));
form.find('.attach-status').append(fileentry);
});
} else {
define('GNUSOCIAL_ENGINE', 'GNU social');
define('GNUSOCIAL_ENGINE_URL', 'https://www.gnu.org/software/social/');
-define('GNUSOCIAL_BASE_VERSION', '1.21.0');
+define('GNUSOCIAL_BASE_VERSION', '1.21.1');
define('GNUSOCIAL_LIFECYCLE', 'dev'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release'
define('GNUSOCIAL_VERSION', GNUSOCIAL_BASE_VERSION . '-' . GNUSOCIAL_LIFECYCLE);