bgiExportFileWeb

Copies a file from the web file store to the user's computer, as a browser download. Takes filepath (the name of a file in the web file store).

BGI GUI

Parameters & Returns

Parameters

filepath String

Returns

Int

Quick Summary

Copies a file from the web file store to the user's computer, as a browser download. Takes filepath (the name of a file in the web file store).

Technical Exegesis...

Copies a file from the web file store to the user's computer, as a browser download. On the web target, files written by your program (bgiSaveRichTextFile, fileWriteFile and so on) are kept in the browser's local storage, not on disk. This hands one of them to the browser, which saves it like any other download (usually into the Downloads folder). The download is named after the last part of filepath. Returns 1 if the download started, 0 if the web file store has no such file. Web target only.

Example

Example.bam
; Save the rich text box, then give the user a copy
bgiSaveRichTextFile(richTextBox, "notes.rtf")
bgiExportFileWeb("notes.rtf")