Bug #24773
closed
The FlashUploader does not disappear anymore
Added by Steffen Gebert almost 14 years ago.
Updated almost 14 years ago.
Description
After successfully uploading files, the FlashUploader usually disappears.
Since #24720 this is not the case anymore.
The line
top.nav = component;
causes a JS error: top.nav is undefined
Removing it solves the issue.
(issue imported from #M17280)
Files
Funny thing (which makes the whole issue to complicated for me as JS-ignorant):
The uploader also needs your fix for compatibility (or at least the tree frame..)
Before this patch top.nav.refresh() could not be executed, as it was undefined in this code (somewhere inline code):
(function (evt) {with (this.ownerDocument ? this.ownerDocument : {}) {with (this.form ? this.form : {}) {with (this) {return (function(evt){if (top.TYPO3.FileUploadWindow.isFlashAvailable()) { initFlashUploader("%2Fopt%2Flocal%2Fapache2%2Fvhosts%2Ftypo3dev%2Ffileadmin%2Ftest2%2F"); } else if(top.content.list_frame){top.content.list_frame.location.href=top.TS.PATH_typo3+'file_upload.php?target=%2Fopt%2Flocal%2Fapache2%2Fvhosts%2Ftypo3dev%2Ffileadmin%2Ftest2%2F';}top.nav.refresh();Clickmenu.hideAll();
}).call(this, evt);}}}})
Hint: This problem only occurs, if the FlashUploader is opened using the Context Menu of the File tree.
solved - all problems (to note: coming from clickmenu) are because the upload link force a reload of the nav frame, so the caller script is no more valid, a nobrainer :)
Also available in: Atom
PDF