Table of Contents

ImportFromClientFile Procedure

Codeunit Temp Blob

Prompts the user to upload a file into the blob.

Signature

ImportFromClientFile(DialogTitle: Text; FromFilter: Text)

Parameters

DialogTitle Text

The text displayed in the prompt.

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

A filter string should contain a description of the filter, followed by a vertical bar and the filter pattern. You must also separate multiple filter description and pattern pairs with a vertical bar, and you must separate multiple extensions in a filter pattern with a semicolon.

Example: Image files (*.bmp, *.jpg)|*.bmp;*.jpg|All files (*.*)|*.*

Example

Prompt the user to upload an image, but allow any file type:

TempBlob.ImportFromClientFile('Please upload an image!', 'Image files (*.bmp, *.jpg)|*.bmp;*.jpg|All files (*.*)|*.*');

This documentation is generated from Smart Toolbox v27.1