We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a98c8ea commit 97f2fd9Copy full SHA for 97f2fd9
image-resize/controllers/default.js
@@ -55,8 +55,8 @@ function view_index() {
55
// image.command(command, [priority]);
56
57
// IMPORTANT: see here https://github.com/petersirka/total.js/tree/master/examples/routing
58
- image.resizeCenter(300, 300).save(filename, function(err, filename) {
59
- model.url = '<div><img src="/{0}?ts={1}" width="300" height="300" alt="Uploaded image" /></div><br />'.format(Path.basename(filename), new Date().getTime());
+ image.resizeCenter(300, 300).save(filename, function(err) {
+ model.url = '<div><img src="/{0}?ts={1}" width="300" height="300" alt="Uploaded image" /></div><br />'.format(U.getName(filename), new Date().getTime());
60
self.view('index', model);
61
});
62
0 commit comments