--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "unifi_portal_file Resource - terraform-provider-unifi" subcategory: "" description: |- The unifi_portal_file resource manages files uploaded to the UniFi guest portal. This resource allows you to upload images that can be used in customizing the UniFi guest portal interface. Note: This resource uploads files to the UniFi controller. The file must exist on the local filesystem where Terraform is executed. --- # unifi_portal_file (Resource) The `unifi_portal_file` resource manages files uploaded to the UniFi guest portal. This resource allows you to upload images that can be used in customizing the UniFi guest portal interface. **Note:** This resource uploads files to the UniFi controller. The file must exist on the local filesystem where Terraform is executed. ## Example Usage ```terraform resource "unifi_portal_file" "file" { file_path = "/Users/username/Downloads/portal.png" } ``` ## Schema ### Required - `file_path` (String) Path to the file on the local filesystem to upload to the UniFi controller. The file must exist and be readable. ### Optional - `site` (String) The name of the UniFi site where this resource should be applied. If not specified, the default site will be used. ### Read-Only - `content_type` (String) MIME type of the file. - `file_size` (Number) Size of the file in bytes. - `filename` (String) Name of the file as stored in the UniFi controller. - `id` (String) The unique identifier of this resource. - `last_modified` (Number) Timestamp when the file was last modified. - `md5` (String) MD5 hash of the file content. - `url` (String) URL where the file can be accessed on the UniFi controller.