<?php

return [

    /*
    |--------------------------------------------------------------------------
    | The ceiling on any single uploaded file
    |--------------------------------------------------------------------------
    |
    | One number, in kilobytes, that the validation rules, Livewire's temporary
    | upload check and the container's own limits all agree on. Before this the
    | three disagreed — a receipt could pass `max:5120` in the rules, then be
    | refused by Livewire's undeclared 12 MB default, or accepted by both and
    | cut off by nginx at 25 MB with a 413 the user could not read.
    |
    | Raising it means raising all three: docker/php/php.ini
    | (upload_max_filesize, post_max_size, max_input_time),
    | docker/nginx/default.conf (client_max_body_size, client_body_timeout),
    | and this file. The value here must stay BELOW post_max_size, so the file
    | is rejected as a file with a message on the field rather than as an
    | oversized request with an error page.
    |
    */

    'max_kb' => (int) env('UPLOAD_MAX_KB', 153600), // 150 MB

    /*
    |--------------------------------------------------------------------------
    | Ceilings for things that have no business being large
    |--------------------------------------------------------------------------
    |
    | A logo is not a video. Letting a 150 MB PNG through would be technically
    | fine and practically a bug — every page load carries it.
    |
    */

    'image_max_kb' => (int) env('UPLOAD_IMAGE_MAX_KB', 5120),  // 5 MB

    'icon_max_kb' => (int) env('UPLOAD_ICON_MAX_KB', 1024),    // 1 MB

];
