> For the complete documentation index, see [llms.txt](https://mostafaznv.gitbook.io/larupload/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mostafaznv.gitbook.io/larupload/standalone-uploader/customization.md).

# Customization

Larupload's standalone uploader provides the flexibility to customize the upload process by allowing users to configure various aspects of the uploader.

Some of the customization options available in the standalone uploader are:

1. **Adding custom styles**: Users can define their own styles to be used for the uploaded files. They can define multiple styles with different dimensions and formats to suit their needs.
2. **Changing disk**: By default, the standalone uploader uses the pre-defined disk from `config/larupload.php` to store the uploaded files. However, users can choose to use a different disk by specifying the disk name in the configuration.
3. **Changing naming-method**: Users can customize the naming method for the uploaded files by defining their own naming convention.
4. ...

Overall, these customization options make the standalone uploader highly flexible and adaptable to different use cases. Users can easily tailor the uploader to their specific needs, ensuring that their uploaded files are handled exactly as they want.

{% code title="Basic Example" %}

```php
$file = $request->file('file');
$cover = $request->file('cover');

$upload = Larupload::init('path')
            ->disk('s3')
            ->namingMethod(LaruploadNamingMethod::HASH_FILE)
            ->image('thumbnail', 1000, 750, LaruploadMediaStyle::CROP)
            ->video('thumbnail', 1000, 750, LaruploadMediaStyle::CROP)
            ->audio('wav', new Wav())
            ->stream(
                name: '480p',
                width: 640,
                height: 480,
                format: (new X264)
                    ->setKiloBitrate(3000)
                    ->setAudioKiloBitrate(64)
                )
            )
            ->upload($file, $cover);
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://mostafaznv.gitbook.io/larupload/standalone-uploader/customization.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
