Skip to content

Conversation

@nlt2390
Copy link

@nlt2390 nlt2390 commented May 6, 2014

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}"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant