PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

PromptImportFile

This function prompts the current Studio user to select one file, which will then be loaded as a File.

See also

  • StudioService/PromptImportFiles, the same function but for loading a list of files instead of a single file

Parameters

Name Type Default Description
{}

A list of file types that the user is allowed to select. File types are formatted without a period. For example, {“jpg”, “png”} would allow only a JPG or PNG file to be selected. If no filter is provided, the filter is nil and allows the user to select any file type

Returns

Return Type Summary

The imported File. Returns nil if no files were selected, or if the selected file was too large (FileSize greater than 100 megabytes)