1. John Murphy
  2. PowerServer 2020 or older (Obsolete)
  3. Friday, 27 April 2018 18:41 PM UTC

Does anyone know what the of_appeonupload error -5 means. The doc only has -1 to -4.

Alfredo Aldama Accepted Answer Pending Moderation
  1. Monday, 30 April 2018 04:05 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hi, 

Remember,  First you install and configure the server 

-5 - Directory of the source file is invalid.

of_appeonupload

Description

Uploads file to the file server.

Syntax

appeonfileservice.of_appeonupload (string source, string destination, boolean isrename, ref long errorcode)

Parameter

 

Description

appeonfileservice

 

An instance of an AppeonFileService object.

source

 

(Optional) The directory of the source file.  If no directory is specified here, a dialog box will be displayed prompting the user to select a file to upload.

destination

 

(Optional) The destination directory where the file is uploaded.  The directory specified here is a relative path to the upload file directory on the file server.

isrename

 

Whether to rename the file if another file with the same name already exists.

errorcode

 

The error occurred in uploading files. Values are:
0 - Succeeded.
-1 - Connection to the file server fails.
-2 - ID error.
-3 - The format of the source file is forbidden.
-4 - Destination directory is invalid or the file is too large. 
-5 - Directory of the source file is invalid.

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Sunday, 29 April 2018 20:48 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

Hello,

please confirm first that you are connected to the Appeon File Service.
Does of_logonfileserver in the code below return 0? (If needed replace with your hostname and credentials)
Then you can run of_appeonupload.

Long    ll_errorcode
String ls_destfile

AppeonFileService afs
afs = CREATE AppeonFileService
If afs.of_logonfileserver('localhost', 80, "username=appeon;password=appeon") = 0 Then
    ls_destfile = afs.of_appeonupload(as_pathname, "", true, ll_errorcode) 

Best,
Marco

Comment
There are no comments made yet.
Appeon Support Team Accepted Answer Pending Moderation
  1. Saturday, 28 April 2018 02:40 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

Hi John,

What's the file size and type you want to upload, please provide the appeonfileserver.xml and appeonfileservice.log to us for more study, thanks.

Regards,
ZhaoKai

Comment
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.