File.UploadIntoStream(Text, Text, Text, var Text, var InStream) Method

Version: Available or changed with runtime version 1.0.

Sends a file from the client computer to the corresponding server. The client computer is the computer that is running the Windows client or the computer that is running a browser that accesses the web client.

Syntax

[Ok := ]  File.UploadIntoStream(DialogTitle: Text, FromFolder: Text, FromFilter: Text, var FromFile: Text, var InStream: InStream)

Note

This method can be invoked without specifying the data type name.

Parameters

DialogTitle
 Type: Text
The text displayed in the title bar of the Open dialog box. This parameter is not supported by the web client. The title is determined by the end-user's browser.

FromFolder
 Type: Text
The path of the folder that is displayed in the File Open dialog box. This is the default folder, but the user can browse to any available location. This parameter is not supported by the web client. By default, the browser uses the folder that was last accessed.

FromFilter
 Type: Text
The type of file that can be uploaded to the server. A user can try to upload any file type but an error occurs if the file is not the specified type.

FromFile
 Type: Text
The default file to upload to the service. The name displays in the dialog box for uploading the file. The user can change the file. This parameter is not supported by the web client.

InStream
 Type: InStream

Return Value

[Optional] Ok
 Type: Boolean
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

Important

This method is deprecated from runtime 7.0. Use File.UploadIntoStream Method instead.

File Data Type Get Started with AL Developing Extensions