fix: Add image/gif to custom feed logo upload accept attribute

Update file input accept attributes for custom feed logo uploads to include
image/gif, making it consistent with the file-upload widget which also
allows GIF images.

Updated in three places:
- Template file input (plugin_config.html)
- JavaScript addCustomFeedRow function (base.html)
- Dynamic file input creation in handleCustomFeedLogoUpload (base.html)

All custom feed logo upload inputs now accept: image/png, image/jpeg,
image/bmp, image/gif
This commit is contained in:
Chuck
2026-01-08 13:24:48 -05:00
parent 89f07b8b79
commit 3f36c3aadc
2 changed files with 3 additions and 3 deletions

View File

@@ -4857,7 +4857,7 @@
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<input type="file" <input type="file"
id="${fieldId}_logo_${newIndex}" id="${fieldId}_logo_${newIndex}"
accept="image/png,image/jpeg,image/bmp" accept="image/png,image/jpeg,image/bmp,image/gif"
style="display: none;" style="display: none;"
onchange="handleCustomFeedLogoUpload(event, '${fieldId}', ${newIndex}, 'ledmatrix-news', '${fullKey}')"> onchange="handleCustomFeedLogoUpload(event, '${fieldId}', ${newIndex}, 'ledmatrix-news', '${fullKey}')">
<button type="button" <button type="button"
@@ -4983,7 +4983,7 @@
const fileInput = document.createElement('input'); const fileInput = document.createElement('input');
fileInput.type = 'file'; fileInput.type = 'file';
fileInput.id = `${fieldId}_logo_${index}`; fileInput.id = `${fieldId}_logo_${index}`;
fileInput.accept = 'image/png,image/jpeg,image/bmp'; fileInput.accept = 'image/png,image/jpeg,image/bmp,image/gif';
fileInput.style.display = 'none'; fileInput.style.display = 'none';
fileInput.setAttribute('onchange', `handleCustomFeedLogoUpload(event, '${fieldId}', ${index}, '${pluginId}', '${fullKey}')`); fileInput.setAttribute('onchange', `handleCustomFeedLogoUpload(event, '${fieldId}', ${index}, '${pluginId}', '${fullKey}')`);

View File

@@ -230,7 +230,7 @@
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<input type="file" <input type="file"
id="{{ field_id }}_logo_{{ item_index }}" id="{{ field_id }}_logo_{{ item_index }}"
accept="image/png,image/jpeg,image/bmp" accept="image/png,image/jpeg,image/bmp,image/gif"
style="display: none;" style="display: none;"
onchange="handleCustomFeedLogoUpload(event, '{{ field_id }}', {{ item_index }}, '{{ plugin_id }}', '{{ full_key }}')"> onchange="handleCustomFeedLogoUpload(event, '{{ field_id }}', {{ item_index }}, '{{ plugin_id }}', '{{ full_key }}')">
<button type="button" <button type="button"