View Single Post
  #10  
Old 27th September 2016, 11:12
bhushanchanda's Avatar
bhushanchanda bhushanchanda is offline
Guru
 
Join Date: Sep 2012
Location: India
Posts: 2,365
bhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura aboutbhushanchanda has a spectacular aura about
Baan: LN FP 1-9, 10.4, a little bit of Baan IV - DB: SQL Server 2008, Oracle - OS: Windows Server 2008 R2, Unix
Hi,

You cannot leave form.path blank. Its the destination path.

client.upload.files()
Quote:
#include <bic_desktop>

function long client.upload.files (string destination)

Description

Upload one or more files from the client and save these files in a server directory. Conversion of CRLF characters is only done for text files (file extension .txt or mime.type "text/plain"). All other file types are copied in binary mode. This function returns an id that can be used in the function client.get.upload.file to obtain information of an uploaded file. This function is only supported for HTMLUI.


Arguments
string destination the file on the server to which the client file will be uploaded (user must have write permission).


Return values
<>0 the id of the result object to be used by subsequent functions. This result object must be deleted using the function: client.delete.upload.file.object
0 when an error occurred (for instance destination is a directory)
client.upload.file()
Quote:
#include <bic_desktop>

function long client.upload.file (string destination [, ref string client.filename] [, ref string mime.type])

Description

Upload a single file from the client and save this file on the server in the file location passed as the destination argument. Conversion of CRLF characters is only done for text files (file extension .txt or mime.type "text/plain"). All other file types are copied in binary mode. This function is only supported for HTMLUI.


Arguments
string destination the file on the server to which the client file will be uploaded (user must have write permission).

[ref string client.filename] the original name of this file on the client

[ref string mime.type] optional string representing the MIME Media type of the file. The official list can be found here: http://www.iana.org/assignments/media-types/index.html.


Return values
0 success
<0 when an error occurred (for instance destination is a directory)
client.get.upload.file()
Quote:
#include <bic_desktop>

function string client.get.upload.file (long id, long index [, ref string client.filename] [, ref string mime.type])

Description

Get the details about a file which is uploaded with function client.upload.files. This function is only supported for HTMLUI.


Arguments
long id the id of the result object returned by client.upload.files.

long index one-based index of the uploaded file for which the information is requested.

[ref string client.filename] the original name of this file on the client.

[ref string mime.type] optional string representing the MIME Media type of the file. The official list can be found here: http://www.iana.org/assignments/media-types/index.html.


Return values
The server path name of the uploaded file or empty when an error occurred
__________________
Regards,

Bhushan

Unless you try to do something beyond what you have already mastered, you will never grow!
Reply With Quote