Open A () File As () (block)

From PenguinMod Wiki
Jump to navigation Jump to search
Open A () File As () (block)
...
Caption
Block Type Reporter Block
Category / Extension Files
Status Who tf uses status
The file modal that appears when the block is used. Might not appear if you change the selector mode.

Open a file as is a Reporter Block in the Files extension. When used, it will allow you to open a certain type or types of file via your systems file selector. In the text input, you can put what files you want the selector to show, for example, if you wanted to show a png file, you would put ".png" in the input. However, if you wanted to put multiple different files in the input, you would separate them with a comma and a space, for example if you wanted multiple image files, you'd put ".png, .jpg, .bmp". Depending on the type of output chosen in the dropdown, the block will output the data of your file.

Dropdown

  • text
  • data: URL
  • array buffer