# Generate Download Link

Larupload provides two methods to generate download links for attachments: `url` and `urls`.

The `url` method generates a URL for a specific style of the attachment. This can be useful when you only need to provide a download link for a particular style of the attachment. For example, if you only want to provide a download link for the original version of the attachment.

On the other hand, the `urls` method generates an object of URLs for all styles of the attachment. This can be useful when you want to provide download links for all styles of an attachment, such as original, cover, thumbnail, and ...


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mostafaznv.gitbook.io/larupload/download/generate-download-link.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
