Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2681165
D25074.1734637628.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
934 B
Referenced Files
None
Subscribers
None
D25074.1734637628.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
@@ -38,6 +38,20 @@
return this;
},
+ /**
+ * Get the File Monogram - like 'F123'
+ */
+ getMonogram: function() {
+ return 'F' + this.getID();
+ },
+
+ /**
+ * Get the File page URI - like '/F123'
+ */
+ getPageURI: function() {
+ return '/' + this.getMonogram();
+ },
+
setChunks: function(chunks) {
var chunk;
for (var ii = 0; ii < chunks.length; ii++) {
@@ -101,7 +115,7 @@
switch (this.getStatus()) {
case 'done':
- var link = JX.$N('a', {href: this.getURI()}, 'F' + this.getID());
+ var link = JX.$N('a', {href: this.getPageURI()}, this.getMonogram());
content = [
JX.$N('strong', {}, ['Upload Complete (', link, ')']),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 19:47 (19 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1015453
Default Alt Text
D25074.1734637628.diff (934 B)
Attached To
Mode
D25074: FileUpload: show File page instead of binary file
Attached
Detach File
Event Timeline
Log In to Comment