Skip to content

Commit

Permalink
docs: add more example (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore committed Oct 26, 2017
1 parent b0785e3 commit f95e322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ exports.multipart = {

## Examples

[More Examples](https://github.com/eggjs/examples/tree/master/multipart)

### Upload File

You can got upload stream by `ctx.getFileStream*()`.
Expand Down Expand Up @@ -189,7 +191,7 @@ module.exports = function* (ctx) {
try {
result = yield ctx.oss.put('egg-multipart-test/' + part.filename, part);
} catch (err) {
yield sendToWormhole(stream);
yield sendToWormhole(part);
throw err;
}
console.log(result);
Expand Down

0 comments on commit f95e322

Please sign in to comment.