Skip to content

Commit 4b9dbc0

Browse files
author
Sebastian Bean
committed
using info name for upload
1 parent 17aa725 commit 4b9dbc0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.DS_Store

0 Bytes
Binary file not shown.

lib/uploadhandler.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ module.exports = function (options) {
100100

101101
if (options.videoTypes.test(fileInfo.name)) {
102102
var image_path = options.uploadDir() + '/' + path.basename(file.path) + '.png';
103+
console.log(image_path)
104+
break;
103105
var proc = new ffmpeg({
104106
// input source, required
105-
source: '/Users/seb/Desktop/rock_show_360.mp4',
107+
source: options.uploadDir() + '/' + fileInfo.name,
106108
// timout of the spawned ffmpeg sub-processes in seconds (optional, defaults to 30)
107109
timeout: 30,
108110
// default priority for all ffmpeg sub-processes (optional, defaults to 0 which is no priorization)

0 commit comments

Comments
 (0)