Page MenuHomePhabricator

TinyMCE error when you try and upload the same image.
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Upload an image or document into the Wiki
  • In TinyMCE upload the same file using the inbuilt TinyMCE upload function.

What happens?:

The image does not upload and no error message is given.

As an example, I have uploaded onto https://dafoshowcase.com/dwaas/index.php/Main_Page

The image I uploaded is https://dafoshowcase.com/dwaas/index.php/Main_Page

When I try and upload this image a second time I get the attached.

Images error with TinyMCE.jpg (1,237×495 px, 102 KB)

This can be seen at https://dafoshowcase.com/dwaas/index.php/Test_page

What should have happened instead?:

An alert should show detailing that the image is already contained within the Wiki and change to include the existing image.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

Product Version
MediaWiki 1.35.4
PHP 7.4.26 (litespeed)
MySQL 5.6.23-cll-lve
ICU 63.1
Lua 5.1.5

Extension Version
TinyMCE 1.1.2

Event Timeline

Hi Gary, just added fix to master branch

Hi @Squeak24, Please let me know if this is resolved so I can update the task status, thanks.

Hi Gary, just added fix to master branch

Including links for statements is very welcome (or following https://www.mediawiki.org/wiki/Gerrit/Commit_message_guidelines ).

75e87310ea6f46159bf84f3f6adec1bd279e58b2

Squeak24 claimed this task.

Thanks Duncan, that's resolved