GithubHelp home page GithubHelp logo

kwp-lab / picgo-plugin-vikadata Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 48 KB

基于 Picgo 开发的一款上传插件,你可以方便地将本地文件(图片、文档、PDF等等各种格式的文件)上传至vika维格表。

License: MIT License

TypeScript 100.00%
vikadata vikadata-api picgo-plugin picgo vikadata-uploader attachment-uploader

picgo-plugin-vikadata's Introduction

picgo-plugin-vikadata

An uploader for vikadata.

基于 Picgo 开发的一款上传插件,你可以方便地将本地文件(图片、文档、PDF等等各种格式的文件)上传至vika维格表。


🎨 如何安装

  • 在线安装

打开 PicGo 详细窗口,选择插件设置,搜索 vikadata 安装,然后重启应用即可。

注意:你必须安装 Node.js 之后才能使用此方式安装 PicGo 的插件,因为 PicGo 是依赖 npm 来安装插件。


  • 离线安装

除了在线安装,你还可以下载本项目的代码到本地,然后跟着官方的教程进行安装

👉 如何离线安装


🚀 如何使用

安装完毕后,需要进行简单的设置。 打开 Picgo 详细窗口 > 图床设置 > vika维格表。

settings

跟随界面指引,填写设置参数:

  • 你的维格表帐号下的API Token
  • 图片需要上传到哪张表
  • 指定附件字段用于存储图片
  • 上传的方式。如果选择“一张图片占用一个单元格”,当批量上传图片的时候,插件会自动在维格表里新增行,一行的指定字段存储一张图片,然后循环上述动作;如果选择“多张图片占用一个单元格”,则插件本次操作总共只会创建一行,然后将所有上传的图片都存储到指定的附件字段中。

设置完毕后,即可使用PicGo的能力进行文件上传。 详细的使用说明,请看官方文档

👉 PicGo 使用说明

picgo-plugin-vikadata's People

Contributors

kwp-lab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

emmachan2021

picgo-plugin-vikadata's Issues

上传图片报错

按照readme配置说明,配置完成之后,上传图片报如下错误:

2024-03-08 10:24:48 [PicGo INFO] [PicGo Server] upload result
2024-03-08 10:24:48 [PicGo WARN] [PicGo Server] upload failed, see picgo.log for more detail ↑
2024-03-08 10:28:35 [PicGo INFO] Before transform
2024-03-08 10:28:35 [PicGo INFO] beforeTransformPlugins: vika running
2024-03-08 10:28:35 [PicGo INFO] Transforming... Current transformer is [path]
2024-03-08 10:28:35 [PicGo INFO] Before upload
2024-03-08 10:28:35 [PicGo INFO] beforeUploadPlugins: vika running
2024-03-08 10:28:35 [PicGo INFO] beforeUploadPlugins: renameFn running
2024-03-08 10:28:35 [PicGo INFO] Uploading... Current uploader is [vika]
2024-03-08 10:28:35 [PicGo WARN] failed
2024-03-08 10:28:35 [PicGo ERROR] {
"method": "POST",
"url": "",
"statusCode": 0,
"message": "Cannot read properties of null (reading 'replace')",
"stack": "Error: Cannot read properties of null (reading 'replace')\n at dispatchHttpRequest (E:\tools\PicGo\resources\app.asar\node_modules\picgo\node_modules\axios\lib\adapters\http.js:161:23)\n at new Promise ()\n at httpAdapter (E:\tools\PicGo\resources\app.asar\node_modules\picgo\node_modules\axios\lib\adapters\http.js:49:10)\n at dispatchRequest (E:\tools\PicGo\resources\app.asar\node_modules\picgo\node_modules\axios\lib\core\dispatchRequest.js:58:10)\n at async Uploader.uploadAttachmentsToEachRecord (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\picgo-plugin-vikadata\dist\uploader.js:47:38)\n at async Uploader.handle (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\picgo-plugin-vikadata\dist\uploader.js:138:13)\n at async Object.handle (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\picgo-plugin-vikadata\dist\index.js:59:17)\n at async $e.doUpload (E:\tools\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:17198)\n at async $e.start (E:\tools\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:15969)\n at async Tt.upload (E:\tools\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:71270)",
"response": {
"status": 0,
"statusCode": 0,
"body": ""
}
}
2024-03-08 10:28:35 [PicGo ERROR] {
"method": "POST",
"url": "",
"statusCode": 0,
"message": "Cannot read properties of null (reading 'replace')",
"stack": "Error: Cannot read properties of null (reading 'replace')\n at dispatchHttpRequest (E:\tools\PicGo\resources\app.asar\node_modules\picgo\node_modules\axios\lib\adapters\http.js:161:23)\n at new Promise ()\n at httpAdapter (E:\tools\PicGo\resources\app.asar\node_modules\picgo\node_modules\axios\lib\adapters\http.js:49:10)\n at dispatchRequest (E:\tools\PicGo\resources\app.asar\node_modules\picgo\node_modules\axios\lib\core\dispatchRequest.js:58:10)\n at async Uploader.uploadAttachmentsToEachRecord (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\picgo-plugin-vikadata\dist\uploader.js:47:38)\n at async Uploader.handle (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\picgo-plugin-vikadata\dist\uploader.js:138:13)\n at async Object.handle (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\picgo-plugin-vikadata\dist\index.js:59:17)\n at async $e.doUpload (E:\tools\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:17198)\n at async $e.start (E:\tools\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:15969)\n at async Tt.upload (E:\tools\PicGo\resources\app.asar\node_modules\picgo\dist\index.cjs.js:1:71270)",
"response": {
"status": 0,
"statusCode": 0,
"body": ""
}
}

怎么解决呢?

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.