Skip to content

Commit

Permalink
Fix image upload. Fix #24. Fix #7
Browse files Browse the repository at this point in the history
The fix seems to work but is not perfect: it relies on an outdated version of express. We may need to take a closer look soon to keep it working.
  • Loading branch information
jeremyfa committed Jul 2, 2015
1 parent 73d4638 commit 4e0ee2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions out/minicms.plugin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/minicms.plugin.coffee
Expand Up @@ -82,7 +82,7 @@ module.exports = (BasePlugin) ->
app.post '/'+@config.prefix.url+'/generate', cp, cs, require('./routes/generate').bind(@)

# Handle file upload
app.post '/'+@config.prefix.url+'/:content/:field/upload', cp, cs, require('./routes/upload').bind(@)
app.post '/'+@config.prefix.url+'/:content/:field/upload', cp, cs, express.bodyParser(keepExtensions: true), require('./routes/upload').bind(@)



Expand Down

0 comments on commit 4e0ee2a

Please sign in to comment.