Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82036

File Upload: Show additional column

$
0
0

Hello,

I want to show the creation date of the uploaded file in the editor, but i only get "undefined | filenameXY.txt"

.

{
    label: "Lizenzdateien:",
    name: "CMDB_Asset_License_File[].id",
    type: "uploadMany",
    display: function(fileId, counter) {
        return '<a href="' + editor.file('CMDB_Asset_License_File', fileId).WebPath + '">' + editor.file('CMDB_Asset_License_File', fileId).DateCreated + ' | ' + editor.file('CMDB_Asset_License_File', fileId).Filename + '</a>';
    },
    noFileText: 'keine Dateien'
},

My sql table has following columns: id | Filename | Filesize | WebPath | SystemPath | DateCreated
the field DateCreated has as standard "CURRENT_TIMESTAMP".
Uploading a file works fine.


Viewing all articles
Browse latest Browse all 82036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>