【问题标题】:How to add download image or Pdf/any doc in filepond?如何在文件池中添加下载图像或 Pdf/任何文档?
【发布时间】:2020-02-06 10:03:48
【问题描述】:

如何在文件池中添加下载图像或 Pdf/任何文档。我正在使用带有 vue 框架的 Filepond。当我单击图像缩略图时,我还需要图像的大预览如何使用 filepond 实现这一点?

<file-pond
            ref="pond"
            class-name="my-pond"
            label-idle="Drop files here..."
            :allow-multiple="allowMultiple"
            accepted-file-types="image/jpeg, image/png, application/pdf,"
            :files="myFiles"
            v-on:init="handleFilePondInit"
            @addfile="onaddfile"
            @removefile="onRemoveFile"
        >
        </file-pond>

【问题讨论】:

    标签: javascript jquery vue.js filepond


    【解决方案1】:

    这个第三方插件增加了一个下载按钮https://github.com/nielsboogaard/filepond-plugin-get-file

    您可以使用@activatefile 在用户单击文件项时运行逻辑。 https://pqina.nl/filepond/docs/patterns/api/filepond-instance/#callbacks

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-04-04
      • 1970-01-01
      • 2018-10-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-23
      相关资源
      最近更新 更多