Giter Site home page Giter Site logo

Comments (7)

fengmk2 avatar fengmk2 commented on July 28, 2024

我加上 AlipayFormStream 的支持

from alipay-sdk-nodejs-all.

fengmk2 avatar fengmk2 commented on July 28, 2024

@StringKe 是否可以使用 curl 的接口?exec 的 openapi v2 接口签名算法限制,毕竟难搞 stream。

from alipay-sdk-nodejs-all.

StringKe avatar StringKe commented on July 28, 2024

@StringKe 是否可以使用 curl 的接口?exec 的 openapi v2 接口签名算法限制,毕竟难搞 stream。

可以主要是大部份文件都调度的 OSS 存储,需要把文件本地化之后才能提交上去,这个操作不太方便

from alipay-sdk-nodejs-all.

StringKe avatar StringKe commented on July 28, 2024

另一个是关于文件名字,支付宝的后台似乎是读取的 文件内容里的文件名字?比如 file("file_conent","a.jpg",path)

path 是 /tmp/xxxxxxx 随机字符串这种,接口会返回文件扩展不正确,fileName 似乎没有使用?

from alipay-sdk-nodejs-all.

fengmk2 avatar fengmk2 commented on July 28, 2024

@StringKe https://github.com/alipay/alipay-sdk-nodejs-all/blob/master/test/alipay.test.ts#L169 你可以参考这个,使用 AlipayFormStream + curl 接口来上传文件,支持流式的,不需要将文件下载到本地。

from alipay-sdk-nodejs-all.

fengmk2 avatar fengmk2 commented on July 28, 2024

#134 @StringKe 可以参考这个文档,直接上传文件内容或者文件流,就不需要落盘了。

from alipay-sdk-nodejs-all.

fengmk2 avatar fengmk2 commented on July 28, 2024

https://github.com/alipay/alipay-sdk-nodejs-all?tab=readme-ov-file#%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6%E6%B5%81 我写了2个例子,你可以参考一下

from alipay-sdk-nodejs-all.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.