【问题标题】:Uploading multiple files using python object in Zapier在 Zapier 中使用 python 对象上传多个文件
【发布时间】:2019-12-12 03:54:48
【问题描述】:

我正在上传多个文件,我有 Python 代码来收集文件名和 URL,下一部分是在 Dropbox 中上传文件。但似乎只有第一个文件正在上传。

我想我遗漏了一些东西,当 Dropbox 在 zapier 中的这个 python 代码之后运行时,预期的行为是上传这两个文件?

Python(Zapier 中的第 2 步):

files = [
  {'file_name': 'file_one.doc', 'file_url': 'https://www.file.com/example1'}, 
  {'file_name': 'file_two.doc', 'file_url': 'https://www.file.com/example2'}
]

return files

Dropbox(Zapier 中的第 3 步): 使用 file_name 和 file_url

【问题讨论】:

    标签: python zapier


    【解决方案1】:

    David 来自 Zapier 平台团队。

    这是代码步骤和 python 列表的怪癖。在测试和设置 zap 时,只有第一个数组项(此处为 file_one.doc)会运行。但是当你打开它时,每个文件都会按预期上传。

    这是一个未记录的功能,因为 UI 不能很好地支持它并且令人困惑(如您所知)。

    【讨论】:

      猜你喜欢
      • 2019-09-03
      • 2019-05-15
      • 1970-01-01
      • 2016-06-09
      • 2018-05-20
      • 2019-10-30
      • 1970-01-01
      • 2020-01-30
      • 2020-03-21
      相关资源
      最近更新 更多