Comment 'If uploads fail unde...' to 'Video Upload Limits'
  • If uploads fail under a certain size, the limitation is always in the server stack, not UNA itself.

    For a 1024MB target, the effective limit depends on whether UNA runs on bare-metal or Docker, but the rules are the same.

    Nginx

    Check:

    grep -R "client_max_body_size" /etc/nginx/
    

    Set:

    client_max_body_size 1024M;
    

    Reload:

    nginx -s reload
    

    PHP-FPM

    This handles browser uploads.

    upload_max_filesize = 1024M
    post_max_size = 1024M
    

    Verify correct PHP SAPI:

    php-fpm -i | grep upload_max_filesize
    

    ⚠️ Important: must be checked in FPM, not CLI.

    PHP CLI

    UNA processes videos via cron/ffmpeg in CLI.

    php -i | grep memory_limit
    

    Recommended:

    memory_limit = 1024M
    max_execution_time = 0
    

    If CLI is misconfigured, uploads may succeed but processing fails.

    Disk / temp storage

    Check:

    df -h
    df -h /tmp
    

    Large uploads depend heavily on temporary disk space.

    Docker vs Bare Metal

    If UNA runs on bare metal

    You configure:

    • system PHP-FPM (/etc/php/...)
    • system Nginx (/etc/nginx/...)
    • system CLI PHP

    If UNA runs in Docker

    You must check inside containers:

    • PHP container (FPM)
    • Nginx container
    • CLI/worker container (if separate)

    Example:

    docker exec -it php php -i | grep upload_max_filesize
    docker exec -it nginx nginx -T
    

    Common mistake in Docker:

    People change host settings, but container still uses old limits.

    KEY POINT

    UNA is not limiting uploads.

    The real upload limit is always the lowest value across all layers:

    • Nginx (client_max_body_size)
    • PHP-FPM (web upload: upload_max_filesize, post_max_size)
    • PHP CLI (video processing / ffmpeg)
    • disk / tmp space
    • Docker container limits (if used)
    • CDN / reverse proxy limits (if used, e.g. Cloudflare, nginx proxy, load balancer)

    Important CDN note

    If a CDN or proxy is in front of the server, it can also enforce its own upload limits:

    Examples:

    • Cloudflare (plan-based upload limits)
    • AWS ALB / API Gateway limits
    • reverse proxy Nginx
    • hosting firewall / WAF

    If CDN limit is lower, it will block the upload before it even reaches your server.

    Whether Docker or system install:

    The effective upload limit is always determined by the weakest component in the full path from client → CDN/Reverse-Proxy → Nginx/Proxy → PHP-FPM → CLI → disk/Server-Setup.

    In your case, everything points to a likely misconfiguration in PHP CLI (especially memory/time limits for video processing), which is the most commonly missed part in UNA setups.