egg icon indicating copy to clipboard operation
egg copied to clipboard

上传图片,图片不全问题

Open snvtac opened this issue 8 years ago • 3 comments

ctx.getFileStream() 返回的 FileStream 中的__readableState 字段中的buffer中的BufferList head及tail 这两个的区别是什么?如果上传到第三方云服务器使用哪个字段呢 ?

snvtac avatar Aug 31 '18 08:08 snvtac

Translation of this issue:


Uploading a picture, the picture is not complete

What is the difference between the BufferList head and the tail in the buffer in the __readableState field in the FileStream returned by ctx.getFileStream()? If using a field to upload to a third-party cloud server?

egg-bot avatar Aug 31 '18 08:08 egg-bot

@egg-bot great

snvtac avatar Aug 31 '18 08:08 snvtac

You can see this example https://github.com/eggjs/examples/tree/master/multipart

popomore avatar Aug 31 '18 16:08 popomore