Giter Site home page Giter Site logo

Comments (8)

jlcool avatar jlcool commented on June 4, 2024

是这么上传的吗alioss.upload("bucket", file.path, "key",callbackBody: Config.callbackBody,callbackBodyType: Config.callbackBodyType,callbackHost: Config.callbackHost,callbackUrl: Config.callbackUrl,callbackVars: Config.callbackVars);

from aliossflutter.

gaoyong06 avatar gaoyong06 commented on June 4, 2024

是这么上传的吗alioss.upload("bucket", file.path, "key",callbackBody: Config.callbackBody,callbackBodyType: Config.callbackBodyType,callbackHost: Config.callbackHost,callbackUrl: Config.callbackUrl,callbackVars: Config.callbackVars);

是,参数验证了好几次,没有问题

from aliossflutter.

gaoyong06 avatar gaoyong06 commented on June 4, 2024

我看了一会日志,发现图片确定上传到oss了,但是oss没有回调我们的接口地址

from aliossflutter.

jlcool avatar jlcool commented on June 4, 2024

着急的话自己先看下代码吧

from aliossflutter.

gaoyong06 avatar gaoyong06 commented on June 4, 2024

测试了半天可以肯定:

  1. 我写的callback参数和调用方法是没有问题的
  2. oss确实没用调用服务器的callbackUrl
  3. servercallback 确实没有返回值

--
没写过插件,所有看代码看的也是迷糊

from aliossflutter.

gaoyong06 avatar gaoyong06 commented on June 4, 2024

兄弟,有时间一起调试下嘛,卡这了😁

from aliossflutter.

jlcool avatar jlcool commented on June 4, 2024

测试了下没问题,你看看官方文档 https://help.aliyun.com/document_detail/31853.html?spm=a2c4g.11186623.2.8.26fddfcbbatFhg#concept-ywd-dlb-5db ,注意是post。如果还有问题,请提供个例子

from aliossflutter.

gaoyong06 avatar gaoyong06 commented on June 4, 2024

测试了下没问题,你看看官方文档 https://help.aliyun.com/document_detail/31853.html?spm=a2c4g.11186623.2.8.26fddfcbbatFhg#concept-ywd-dlb-5db ,注意是post。如果还有问题,请提供个例子

感谢回复,嗯嗯,这个官方文档我确实熟读过,而且我自己用官方的POST提交的示例,在现在的项目里面也实现了,callback都是正常工作的,比较不爽的是,我的实现比较简单,没有获取上传进度之类的,看到aliossflutter比较完善,所以想废弃自己实现的,使用aliossflutter来处理这个业务,我在核查一下,非常感谢

from aliossflutter.

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.