Review the file type validation logic in the Cloudflare Pages function. The error 'File type invalid' suggests a whitelist check on MIME types or extensions. Check if 'image/jpeg' is allowed and if the validation is case sensitive. Look in the repository's serverless function code (likely in /functions or /api).