papercut icon indicating copy to clipboard operation
papercut copied to clipboard

Fix "process copy" not work in express example

Open nlt2390 opened this issue 10 years ago • 0 comments

The copy propcess will not work because papercut checks and compares file extension:

 copy: (name, path, version, callback)->
   # if using imageId++, 'name' variable does not have file extension 
    if name.indexOf @config.extension isnt -1
      fs.readFile path, 'binary', callback
    else
      callback(new Error("file extension is not #{@config.extension}"))

nlt2390 avatar May 06 '14 12:05 nlt2390