Skip to content

Commit

Permalink
docs: Minor improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Apr 12, 2024
1 parent e449f2e commit 20f201b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/files.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ async def serve(q: Q):

See `examples/file_stream.py` for a complete example.

## Serving documents
## Rendering documents

Use `q.site.upload()` to upload document from your app to the Wave server. Use the returned paths in `ui.frame()` component.
Use `q.site.upload()` to upload document from your app to the Wave server (or see the following section for other ways for serving files). Use the returned paths in `ui.frame()` component.

```py
q.app.document_path, = await q.site.upload(['path/to/my/document.pdf'])
Expand Down

0 comments on commit 20f201b

Please sign in to comment.