Working with system files technically works on all modern browsers. Excalidraw app toolbar on Chrome with a Save and a focused Save As button. Excalidraw app toolbar on iPhone with just a Save button. Note how on iPhone the Save As button is missing. The screenshots below show the difference between Excalidraw's responsive main app toolbar on iPhone and on Chrome desktop. const openFile = async ( ) => ) you can show a Save As button in addition to a Save button. A File is a specific kind of Blob, and can be used in any context that a Blob can. The input object gives you a FileList, which in the case below consists of just one File. In its simplest form, opening a file can look something like the code sample below. # Opening filesĪs a developer, you can open and read files via the element. If you know how it used to work the old way, you can jump down straight to the new way.
0 Comments
Leave a Reply. |