Project

General

Profile

Actions

Bug #62962

closed

"Select & upload files" is random visible

Added by Peter R over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend User Interface
Target version:
Start date:
2014-11-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I've wrote an extension with image upload in TCA and somtimes is the button "Select & upload files" missing.
Example: I open data set first time - button missing. I open data set second time - button is visible.
This button is to do a multi upload of images. I can see the button in HTML.
I believe the issue is in the file DragUploader.js (typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js).
There is a condition "DnD: 'draggable' in document.createElement('span')," (row 48) and maybe this is sometimes called to early.
This behavior is in Internet Explorer 10 + 11 and Chrome 38.
If I open the console in Internet Explorer (F12) and open the data set, the button is always there.
System:
Windows 7
Typo3 6.2.4 + 6.2.6

TCA:
'bilder' => array(
'exclude' => 0,
'label' => 'LLL:EXT:...attribute.bilder',
'config' =>
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'bilder',
array('maxitems' => 10),
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
),
),

Actions #1

Updated by Matthias Krappitz over 9 years ago

I also put a bit of research into this one and can confirm, but I disagree with one detail of the above:

There is a condition "DnD: 'draggable' in document.createElement('span')," (row 48) and maybe this is sometimes called to early.

To be more precise I found out that the specific line 125 (me.$element.show();) in file typo3/sysext/backend/Resources/Public/JavaScript/DragUploader.js, where this button is about to become visible, once the JS has decided that the client browser is drag and drop capable is just not called sometimes in IE (11). This especially happens when the IE console is closed. We found this once we used an alert() in the code just before line 125. We did not investigate any further if this is because the whole js file is disregarded or anything else is going wrong in the backends js structure.

Actions #2

Updated by Mathias Schreiber over 9 years ago

  • Target version changed from next-patchlevel to 7.4 (Backend)
Actions #3

Updated by Susanne Moog almost 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #4

Updated by Benni Mack over 8 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #5

Updated by Mathias Schreiber over 8 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber

can you check if this is still the case with the current master branch?
We cleaned up FormEngine and the according JS files a lot, so I wonder if this is still an issue

Actions #6

Updated by Benjamin Kott over 8 years ago

Cannot be reproduced, seems to be resolved.

Actions #7

Updated by Benjamin Kott over 8 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF