1. ? ?
  2. PowerServer 2020 or older (Obsolete)
  3. Tuesday, 28 March 2023 02:47 AM UTC

请问下比如安卓手机上的文件如word,excel 等文件之类的我需要通过手机上传到电脑上一个文件夹,怎样处理

如果是照片,用:inv_camera.of_openalbums (ls_filepath)  选择图片文件再, fileservice.of_appeonupload(ls_newfile, "fangyi/yimiao", true, ll_re)  上传可以实现,但 如果是word,excel等其它类型文件就闪退,

那该怎样处理实现呢,要相应例子吗?谢谢

Kai Zhao @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 29 March 2023 05:27 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

你好,

没有函数支持选择所有类型文件. of_openalbums函数只支持图片和视频,请参考在线文档. 
https://docs.appeon.com/ps2020/workarounds_and_api_guide/Camera.html#d0e19473

Regards,
Kai

Comment
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Wednesday, 29 March 2023 06:43 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

那没这函数,那怎样获取到我选择的文件的路径和类型? ,如果直接用 of_appeonupload 没办法指定文件的路径呀,有没其它办法实现?

那就是说没办法实现上传文件了是吧?

Comment
  1. Kai Zhao @Appeon
  2. Wednesday, 29 March 2023 07:38 AM UTC
抱歉,没有其他方法了.
  1. Helpful
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Friday, 31 March 2023 01:06 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

另外请教下,我使用 fileservice.of_appeonupload(ls_newfile, "fangyi/yimiao", true, ll_re)  上传 照片或者视频,最多只能大概13M 左右大小文件,如果超过了,比如15M 或者更大,就提示下面错误,上传不成功,是要哪里设置吗?什么原因?

Comment
  1. Kai Zhao @Appeon
  2. Monday, 3 April 2023 00:21 AM UTC
请打开fileservice目录(比如C:\Inetpub\wwwroot\fileservice\)的appeonfileserver.xml,修改max-file-siz并重启IIS.

https://docs.appeon.com/ps2020/workarounds_and_api_guide/File_Upload_and_Download.html#Configuring_the_Appeon_File_Server_IIS
  1. Helpful
There are no comments made yet.
? ? Accepted Answer Pending Moderation
  1. Monday, 3 April 2023 01:18 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 4

改了不报错了,但上次速度好慢,只有10,20k一次上传,并且上传久了就断了,最后还是不成功?能上传快点不

Comment
  1. Kai Zhao @Appeon
  2. Monday, 3 April 2023 02:16 AM UTC
抱歉无法提高这个性能。这个速度跟网速也有关系,局域网应该会快些。

上传久了就断了,大概多久,100秒吗?可能是请求超时了,请尝试调大超时设置。

https://stackoverflow.com/questions/2414441/how-to-increase-request-timeout-in-iis
  1. Helpful
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.