> For the complete documentation index, see [llms.txt](https://docs.videsk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.videsk.io/es-developers/componentes-web/fileshare.md).

# Fileshare

A continuación, proveemos la documentación para nuestro componente web de envíos de archivos.

Este componente web permite facilitar la gestión visual de los archivos que se vayan a enviar y recibir con muy pocas líneas de código, pero sin dejar de lado la personalización con HTML, CSS y Javascript.

Podrás usar el componente sin necesidad de modificar o añadir nada, o bien personalizar la caja de selección de archivos, comportamiento de envío, cómo adjuntar archivos y mucho más.

Primero deberás cargar el componente en la cabecera de tu sitio web como script:

```html
<script src="https://cdn.videsk.io/sdk/fileshare.component.min.js"></script>
```

{% hint style="warning" %}
Debes cargar el recurso antes de usar el componente `<videsk-fileshare>`, de lo contario será un elemento sin las propiedades y métodos. Además, debes tener cuidado con el atribute `async` o `defer`.
{% endhint %}

Para poder personalizar este componente solo deberás definirlo en alguna parte de tú código HTML:

```html
<videsk-fileshare></videsk-fileshare>
```

Una vez que has definido el componente podrás acceder a el mediante `querySelector` o cual selector HTML con Javascript.

```javascript
const component = document.querySelector('videsk-fileshare');
```

Posteriormente podrás hacer uso de sus propiedades, slots, métodos y eventos disponibles.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.videsk.io/es-developers/componentes-web/fileshare.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
