Giter Club home page Giter Club logo

Comments (5)

LSL1618 avatar LSL1618 commented on June 14, 2024

在上传前改上传参数确实是比较常用的情况。

from layui.

Sight-wcg avatar Sight-wcg commented on June 14, 2024

obj.resetFile 能否解决?

from layui.

starWillRed avatar starWillRed commented on June 14, 2024

obj.resetFile 能否解决?

我使用了resetFile,在控制台打印obj.pushFile()的时候,文件是resetFile之后的内容,但是在下一行代码中使用obj.preview()预览时,发现文件依然是resetFile之前的内容,上传的文件也依然是resetFile之前的内容。请问这是否意味着resetFile存在某些bug?

from layui.

Sight-wcg avatar Sight-wcg commented on June 14, 2024

obj.resetFile 能否解决?

我使用了resetFile,在控制台打印obj.pushFile()的时候,文件是resetFile之后的内容,但是在下一行代码中使用obj.preview()预览时,发现文件依然是resetFile之前的内容,上传的文件也依然是resetFile之前的内容。请问这是否意味着resetFile存在某些bug?

没有重现,就没有办法确认

from layui.

starWillRed avatar starWillRed commented on June 14, 2024

obj.resetFile 能否解决?

我使用settimeout方法进一步测试了upload里面的choose、before、progress、done回调函数,发现是因为开启upload的自动上传后,会立即上传文件,而此时choose、before回调函数中的resetFile尚未执行完毕,obj内容自然也就尚未更改。希望在以后的版本更新中能修复这个问题,谢谢。

from layui.

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.