Project

General

Profile

Actions

Defect #36887

closed

copyImageFromClipboard function failed to generate a unique file name

Added by Simon Hori about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Attachments
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Hello,

The function copyImageFromClipboard is NOT generating unique file name but always uploading image.png.

I've confirmed the problem in chrome 99.0.4844.74, edge 100.0.1185.29, firefox 98.0.2.

This is our environment.

Environment:
  Redmine version                4.2.5.stable
  Ruby version                   2.6.9-p207 (2021-11-24) [x86_64-linux-musl]
  Rails version                  5.2.6.3
  Environment                    production
  Database adapter               PostgreSQL
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp

Possible reason:

According from the public/javascripts/attachments.js#L283-L291 I felt that the variable 'filename' is defined but not used. Can it be the reason of this behavior?

Thank you very much for your support.


Files


Related issues

Related to Redmine - Defect #36013: Paste image mixed with other DataTransferItemClosedMarius BĂLTEANU

Actions
Has duplicate Redmine - Defect #36911: Clipboard copy is broken after upgrade to 4.2.5 or 5.0.0 from 4.2.3Closed

Actions
Copied from Redmine - Patch #36817: copyImageFromClipboard function targets the first file input of the page and may conflict with other pluginsClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF