diff --git a/site/docs/chapter-05-gbdialog-reference.md b/site/docs/chapter-05-gbdialog-reference.md index d0d5bc91..764410f4 100644 --- a/site/docs/chapter-05-gbdialog-reference.md +++ b/site/docs/chapter-05-gbdialog-reference.md @@ -76,9 +76,7 @@ To organize the instructions functionally, I'll group them into five categories: | HEAR _variable_ AS FILE | Returns a file uploaded by the user to be saved. |
HEAR file AS FILE 
SAVE file AS "uploads/myfile.pdf"
TALK "File uploaded and saved."
| | HEAR _variable_ AS AUDIO | Returns an audio file uploaded by the user to be saved. |
HEAR audio AS AUDIO 
SAVE audio AS "recordings/audiofile.mp3"
TALK "Audio received and saved."
| | INCLUDE file | Includes a file into .gbdialog. |
INCLUDE "script.gbdialog" 
TALK "File included."
| -| UPLOAD file | Uploads a file to a storage blob, like Azure Storage. |
UPLOAD "                                   
| - -path/to/file.pdf"
TALK "File uploaded to cloud storage." | +| UPLOAD file | Uploads a file to a storage blob, like Azure Storage. |
UPLOAD "path/to/file.pdf" 
TALK "File uploaded to cloud storage."
| | DIR path | Returns a list of files in the specified directory. |
files = DIR "uploads/" 
TALK "Files in directory: " + files.
| | FILL | Fills data into a Word document to be exported as images. |
FILL "template.docx", data 
TALK "Document filled and exported."
| | SAVE _variable_ AS "path/file" | Saves the specified variable as a file at the given path. |
SAVE file AS "path/to/save/file.pdf" 
TALK "File saved."
|