doupinge9055 2019-02-21 06:02 采纳率: 100%
浏览 320
已采纳

如何在limesurvey上传文件

Hi I am using limesurvey API to build survey mobile app. My problem is I can able to use all APIs, but when I am trying upload a file I am unable upload every time it return null response. {"id":1,"result":null,"error":null}

This is the URL for the documentation for all APIs https://api.limesurvey.org/classes/remotecontrol_handle.html#method_upload_file I used same.

Here is my API example params.

{ "method": "upload_file", "params": [ "tx3yitmq3aqj39g2mbdgprke2hi9brgs", 323169, "323169X48X478", "google.png", "iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAJFBMVEX/////QAAAAAD8/Pzz8/PZ2tr/QwC1JgDxPABJVVdGU1Ssrq/GbyqyAAAAoElEQVR4nO3WiQ0DIQwEwMN89/TfbxLp0kEIEjdTwa4sjLcNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBfySXPjjBUPSLiqLNjjHNFTy31uGYHGaXG3lJKbY9Vp3j2T8F3xX7OjjJGjvQVa66bEu0u2KLMDjPE+jNc/x0+YJeu/x8+4KbZ1r9LAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+6wV0kgG++h5fhgAAAABJRU5ErkJggg==" ], "id": 1 }

Actual API expecting. upload_file(string $sSessionKey, integer $iSurveyID, string $sFieldName, string $sFileName, string $sFileContent) : array

I am passing all params but I am getting null result and file not uploading

Anybody help on the same? Thanks.

  • 写回答

2条回答 默认 最新

  • dsgdfg30210 2019-02-26 12:01
    关注

    gone through the many documentation finally, Its not possible with limesurvey below v3.15

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 求帮我调试一下freefem代码
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图