Attachments with empty file name fix

This commit is contained in:
Ribas160 2025-06-29 21:30:11 +03:00
parent fcce915a5f
commit fa662547fe
2 changed files with 4 additions and 1 deletions

View file

@ -3265,6 +3265,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/FileReader#readAsDataURL()}
*/
function readFileData(loadedFiles) {
// Clear old cache
me.removeAttachmentData();
if (typeof FileReader === 'undefined') {
// revert loading status…
me.hideAttachment();