Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2685800
D25077.1734704373.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
889 B
Referenced Files
None
Subscribers
None
D25077.1734704373.diff
View Options
diff --git a/webroot/rsrc/js/core/FileUpload.js b/webroot/rsrc/js/core/FileUpload.js
--- a/webroot/rsrc/js/core/FileUpload.js
+++ b/webroot/rsrc/js/core/FileUpload.js
@@ -115,7 +115,19 @@
switch (this.getStatus()) {
case 'done':
- var link = JX.$N('a', {href: this.getPageURI()}, this.getMonogram());
+
+ // In this case the File upload was successful
+
+ var linkAttr = {};
+ linkAttr.href = this.getPageURI();
+
+ // External links are evil as default.
+ // Believe it or not, but some Phorge users brainstormed
+ // for one hour for this specific target="_blank".
+ // https://we.phorge.it/T15172
+ linkAttr.target = '_blank';
+
+ var link = JX.$N('a', linkAttr, this.getMonogram());
content = [
JX.$N('strong', {}, ['Upload Complete (', link, ')']),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 14:19 (15 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015338
Default Alt Text
D25077.1734704373.diff (889 B)
Attached To
Mode
D25077: Drag & Drop: set a link as external
Attached
Detach File
Event Timeline
Log In to Comment