'<p class="image-list-name" title="<%= fileName %>"><%= fileName %></p>' +
'<p class="image-list-detail">Size: <%= fileSize %></p>' +
'<p class="image-list-detail">Updated: <%= fileTime %></p>' +
- '<a class="image-list-btndownload" href="<%= hrefPath %>" date-name="<%= fileName %>" download="download">Download</a>' +
+ '<a class="image-list-btndownload" href="<%= hrefPath %>" date-name="<%= fileName %>">Download</a>' +
'</li>';
function _initSocket(socket) {
fileName: file.name,
fileSize: Util.bytesToSize(file.size),
fileTime: new Date(file.birthtime).toLocaleString(),
- hrefPath: '/api/fs/download/' + file.name
+ hrefPath: '/tic/images/' + file.name
});
$imageList.append(imageItem);
});
});
/**
+ * @Deprecated - Use to path of nginx
* API
- *
* path : /api/fs/download
- *
*/
router.get('/fs/download/:filename', function (req, res) {
console.log('an api called that /api/fs/download/'+req.params.filename);