Skip to content

Commit

Permalink
chore: simplify link download docs #2276
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Mar 4, 2024
1 parent d50cfb9 commit b40b90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/widgets/form/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ q.page['example'] = ui.form_card(box='1 1 2 2', items=[

If you want to allow your users to download a file, use the `download` attribute.

The `download` attribute will only start the download if the path points to a location on the same origin (if your app is running on <http://localhost:10101>, the `path` either starts with `/` or `http://localhost:10101`) or has a `Content-disposition` response header set to `attachment`. See [the docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download).
The `download` attribute will only start the download if the path points to a location on the same origin (wave server).

```py
q.page['example'] = ui.form_card(box='1 1 2 2', items=[
Expand Down

0 comments on commit b40b90d

Please sign in to comment.