Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
import java.io.File;
import java.io.IOException;
import org.joget.apps.form.service.FileUtil;


String recordId = "ID-0001";
String tableName = "crm_contact";
String fileName = "profile_image.png";
 
//Get the uploaded file of a form data record
try {
    File profileImage = FileUtil.getFile(fileName, tableName, recordId);
}catch (IOException e) {}

...