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) :
GetFileExtension Server Action
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
Thanks.
true: If the file extension matches the expected format.
false: If the file extension does not match the expected format.