extension-format-check
Reactive icon

File Extension Check

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded
 on 11 July 2023
 by 
5.0
 (5 ratings)
extension-format-check

File Extension Check

Documentation
1.0.1

CheckFileExtension Server Action 

Parameters:

FileExtensionFormat (string): The expected file extension format, e.g., ".jpg", ".png", ".txt".

FileName (string): The name of the file to be checked, e.g., "namefile.jpg", "document.txt".

Function: Yes.

Output :

(Boolean) :

  • true: If the file extension matches the expected format.
  • false: If the file extension does not match the expected format.


GetFileExtension Server Action

Parameters:

FileName (string): The name of the file to be checked, e.g., "namefile.jpg", "document.txt".

Function : Yes.

Output:

(String) : File Extension e.g., ".jpg", ".txt".


Simple Tutorial

Create design like

In Client Action CheckFileExtension

FileExtensionFormat : give the extension you want to check

FileName : variable of FileName.


In Client Action GetFileExtension

FileName : variable of FileName.


Thanks.


1.0.0

Parameters:

FileExtensionFormat (string): The expected file extension format, e.g., ".jpg", ".png", ".txt".

FileName (string): The name of the file to be checked, e.g., "namefile.jpg", "document.txt".


Output :

true: If the file extension matches the expected format.

false: If the file extension does not match the expected format.