cables is under heavy development.
There might be one or another bug, please let us know about it!

LocalFileToDataUrl Op


load a local file and output as data url

Let the user select a file from their local harddrive. The file is not loaded to any server, it is just loaded in to memory.
You can connect the dataUrl output to a texture op to load an image as a texture in cables.

Internally it uses an <input type="file"/> , the way standard html file select

Accept Parameter

  • A valid case-insensitive filename extension, starting with a period (".") character. For example: .jpg, .pdf, or .doc
  • Multiple extensions seperated by comma, like .png,.jpg
  • A valid MIME type string, with no extensions.
  • The string audio/* meaning "any audio file".
  • The string video/* meaning "any video file".
  • The string image/* meaning "any image file".

Edit Documentation

Full Name
  • Ops.Sidebar.LocalFileToDataUrl
  • Core Op - Official cables op
AuthorTest Patches



link (Object)
Text (String)
Button Text (String)
Accept Files (String)
Id (Number:string )
Visible (Number:boolean )
Grey Out (Number:boolean )
Show Dialog (Trigger)
Reset (Trigger)


childs (Object)
Data URL (String)
Filename (String)
File Object (Object)

File Select Button now shows Filename when a file was selected

File Changed (Trigger)

Usages of LocalFileToDataUrl

  • Examples
  • Public
  • My Patches
  • Ops


created opuser avatarpandur - 2020-08-19
Ops.User.pandur.LocalFileToDataUrl renamed to Ops.Sidebar.LocalFileToDataUrluser avatarpandur - 2020-08-19
react properly to disconnecting parentuser avatarstephan - 2022-02-03
featureadded input field for button textuser avatarpandur - 2024-01-23
featureFile Select Button now shows Filename when a file was selecteduser avatarpandur - 2024-02-02
featureAdded Accept input to filter accepable files by extensionuser avatarpandur - 2024-02-02