Image file upload not working on Netlify but perfectly fine on local

Hi

I am facing an issue with file uploads in my application when it is deployed live. Interestingly, everything works seamlessly on my local development environment. My tech stack includes Next.js for the frontend, and for the image upload, I’m utilizing FilePond.

To elaborate further, when a file is uploaded, it’s processed as multipart/form-data and sent to a specific API endpoint. This endpoint acts as a proxy, forwarding the uploaded file to another application built on NestJS, which in turn saves the file to Cloudinary.

The issue I’m experiencing is that the NestJS endpoint doesn’t seem to be getting invoked at all when the app is live. I receive a 404 error, which doesn’t make sense given that the same flow works perfectly in my local setup.

Any help in diagnosing and fixing this issue would be greatly appreciated.

NextJS react component

return (<div className={'w-full text-primary'}>
        <FilePond className={'w-full'}
            files={files}
            onupdatefiles={setFiles}
            allowMultiple={false}
            imageEditAllowEdit={props.allowImageEdit || true}
            maxFiles={props.maxFiles || 1}
            allowImageCrop={props.allowImageCrop || true}
            imagePreviewMaxFileSize="1MB"
            allowImageResize={props.allowImageResize || true}
            styleProgressIndicatorPosition={'right bottom'}
            styleButtonRemoveItemPosition={'center bottom'}
            styleLoadIndicatorPosition={'center bottom'}
            server={{

                process: {
                    url: apiEndpoint,
                    onload: (response) => {
                        console.log('response: ', response)
                        setFileUrl(JSON.parse(response));
                        props.onUploadCompleted(JSON.parse(response).url);
                        return response
                    },
                    onerror: (error) => {
                        console.log('File upload error', error);
                    }
                }
            }}
            name="file" /* sets the file input name, it's filepond by default */
            labelIdle='Drag & Drop your files or <span class="filepond--label-action">Browse</span>'
        /></div>
    );

Nextjs api function

case 'upload-banner':
      try {
        const axiosConfig: any = {
          method: 'post',
          url: `${process.env.NEXT_PUBLIC_API}/media/upload/profile-banner`,
          headers: {
            ...req.headers,
            'Authorization': `Bearer ${accessToken}`, // Replace with actual access token
          },
          data: req,
        };

        const {data} = await axios(axiosConfig);

        res.status(200).json(data);

      } catch (error) {
        console.error('UPLOAD ERROR', error);
        if (error.response.data.message) {
          res.status(error.response.data.message.status).end(error.response.data.message.message);
        } else {
          res.status(500).end('Internal server error');
        }
      }
      break;

Nestjs controller:

@UseGuards(AuthGuard('jwt'))
    @Post('upload/profile-banner')
    @ApiResponse({status: 403, description: 'Forbidden.'})
    @ApiResponse({status: 200, description: 'Profile banner upload successfully'})
    @UseInterceptors(FileInterceptor('file'))
    uploadProfileBannerImage(
        @UploadedFile('file') file: Express.Multer.File,
        @AuthUser() user: User
    ) {
        try {
            const userId = user._id;

            if (!userId) throw new ForbiddenException('User not found');

            return this.mediaService.uploadProfileBannerImage(file, userId);
        } catch (error) {
            console.error(error);
            throw error;
        }

    }

Here is header I get from the Nextjs

Sep 12, 09:54:07 AM: INIT_START Runtime Version: nodejs:16.v19	Runtime Version ARN: arn:aws:lambda:us-east-1::runtime:d1151b12ca57ae5a7756c59d01d400082fbc5866d3a96d51cf4839c32c5d2a7eSep 12, 09:54:10 AM: 8c31b396 INFO   TYPE upload-bannerSep 12, 09:54:10 AM: 8c31b396 INFO   RAW-HEADER [
  'host',
  'spacez-marketplace-v2.netlify.app',
  'accept',
  '*/*,image/webp',
  'accept-encoding',
  'br',
  'accept-language',
  'en,de;q=0.9,en-US;q=0.8,zh;q=0.7,fr;q=0.6,en-CA;q=0.5,fr-CA;q=0.4',
  'baggage',
  'sentry-environment=production,sentry-release=81fb0618e69409baf0ace137cfd4ed93c6d4a4e3,sentry-public_key=84db159d04954792ad83cabd58710a1e,sentry-trace_id=98fe8aca718e4f9489405e7f038c348c',
  'cache-control',
  'no-cache',
  'cdn-loop',
  'netlify',
  'content-length',
  '1020350',
  'content-type',
  'multipart/form-data; boundary=----WebKitFormBoundaryXTmolLeqQP3BysjZ',
  'cookie',
  '_ga=GA1.1.1094838397.1692965318; _lr_uf_-fvg2uc=05589db9-8630-48d5-9258-6ac1eacc16e1; __stripe_mid=fef9d938-9f71-4b1e-ac3e-a32350a30c323e2d5a; localConsent=true; __stripe_sid=0729c3ba-c743-493d-8442-fbf8b6034f3b0df5b4; _lr_tabs_-fvg2uc%2Fspacebrainz={%22sessionID%22:1%2C%22recordingID%22:%225-926c2ce5-23a0-488c-ac25-3fa2aa7b9c32%22%2C%22webViewID%22:null%2C%22lastActivity%22:1694503457581}; _ga_LVR8ETZBF7=GS1.1.1694502657.22.1.1694503464.0.0.0; _lr_hb_-fvg2uc%2Fspacebrainz={%22heartbeat%22:1694503577480}; appSession.0=xxxxx',
  'origin',
  'https://spacez-marketplace-v2.netlify.app',
  'pragma',
  'no-cache',
  'referer',
  'xxxxx',
  'sec-ch-ua',
  '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"',
  'sec-ch-ua-mobile',
  '?0',
  'sec-ch-ua-platform',
  '"macOS"',
  'sec-fetch-dest',
  'empty',
  'sec-fetch-mode',
  'cors',
  'sec-fetch-site',
  'same-origin',
  'sentry-trace',
  '98fe8aca718e4f9489405e7f038c348c-b8aac1b07d20aaed-1',
  'user-agent',
  'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36',
  'x-country',
  'IT',
  'x-forwarded-for',
  '93.37.120.66',
  'x-forwarded-proto',
  'https',
  'x-language',
  'en',
  'x-nf-account-id',
  '5a280b7c4c4b9334433b4465',
  'x-nf-client-connection-ip',
  '93.37.120.66',
  'x-nf-deploy-id',
  '65001759db270c0007ad45df',
  'x-nf-geo',
  'eyJjaXR5IjoiUm9tZSIsImNvdW50cnkiOnsiY29kZSI6IklUIiwibmFtZSI6Ikl0YWx5In0sInN1YmRpdmlzaW9uIjp7ImNvZGUiOiI2MiIsIm5hbWUiOiJMYXppbyJ9LCJ0aW1lem9uZSI6IkV1cm9wZS9Sb21lIiwibGF0aXR1ZGUiOjQxLjg5MDQsImxvbmdpdHVkZSI6MTIuNTEyNn0=',
  'x-nf-request-id',
  '01HA464BAPC3GRTNNKN46D8P5G',
  'x-nf-site-id',
  '2058b0dd-166a-4c3e-9891-85519bd453e7',
  'Connection',
  'close'
]Sep 12, 09:54:10 AM: 8c31b396 INFO   HEADERS {
  host: 'spacez-marketplace-v2.netlify.app',
  accept: '*/*,image/webp',
  'accept-encoding': 'br',
  'accept-language': 'en,de;q=0.9,en-US;q=0.8,zh;q=0.7,fr;q=0.6,en-CA;q=0.5,fr-CA;q=0.4',
  baggage: 'sentry-environment=production,sentry-release=81fb0618e69409baf0ace137cfd4ed93c6d4a4e3,sentry-public_key=84db159d04954792ad83cabd58710a1e,sentry-trace_id=98fe8aca718e4f9489405e7f038c348c',
  'cache-control': 'no-cache',
  'cdn-loop': 'netlify',
  'content-length': '1020350',
  'content-type': 'multipart/form-data; boundary=----WebKitFormBoundaryXTmolLeqQP3BysjZ',
  cookie: '_ga=GA1.1.1094838397.1692965318; _lr_uf_-fvg2uc=05589db9-8630-48d5-9258-6ac1eacc16e1; __stripe_mid=fef9d938-9f71-4b1e-ac3e-a32350a30c323e2d5a; localConsent=true; __stripe_sid=0729c3ba-c743-493d-8442-fbf8b6034f3b0df5b4; _lr_tabs_-fvg2uc%2Fspacebrainz={%22sessionID%22:1%2C%22recordingID%22:%225-926c2ce5-23a0-488c-ac25-3fa2aa7b9c32%22%2C%22webViewID%22:null%2C%22lastActivity%22:1694503457581}; _ga_LVR8ETZBF7=GS1.1.1694502657.22.1.1694503464.0.0.0; _lr_hb_-fvg2uc%2Fspacebrainz={%22heartbeat%22:1694503577480}; appSession.0=eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIiwidWF0IjoxNjk0NTA1MjQ2LCJpYXQiOjE2OTQ1MDI2NTIsImV4cCI6MTY5NDU5MTY0Nn0..6YZzK1Emil-PqMiX.ed1dB1Q87VMkZgit33-g8i5gyP3zZeVXlPnXPgnPYXzxY_ubnXDAlxYpQHZOW2McMl6IJ7n2v9V8s-lJOuiWTr-ULYE0oK8UU0MUVhVpwkHKDpqHlCtYnVN-S8TzwXTZ5SymRp1831Le6vCQJrKx65uxQoTOnN-BxKltBY0pp5J4II6K9R-eppOL9SjkxmqgE_8gybgGNzdh5hpSiTPHh-w2_y-0aTThOFoxnisCgK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Nw2uNm_Hppd6FZTG-FGIIaScXYoZm_uYvE7ZaMfS0MueHieAD5TCBZGNoigXtEBpscsKiyBU06Kbo2CqALm3OcrgHxxXX0wRmVP_oFPRwUypBX2glhQwZs-meHuMawwO2RDmwX0v7IHbkcE9xjXQoPnq7Ht2MhPcQq-te4U-udKwjslUjh1GaKOxFq_iPbkhsQd3qQEP6BDno5Wk-smvy51ytuqzQRAGPYS6CP_P3pxlPemts5OIfd9LL7WR6YU-TpwfQxXOJ3omyrl3ylmGJEiB1zvQiRkRIindG9KrW8vQOxR3DdqNZf1cNACzSA2wnMcM8rys8l4Wjk_FYtOub7jfHTXGP4dyalBNMUfy7DOSxQxjVy0seJ_puj9eFlRJSVGRyWjP3FTopODXjSTcrquuGGFA63YALrvhQrS0dLpWtM3C4I0NzlWes0OIn8nl4f2mkuYhXowofXsyZd3Bep62bKDSvVRNXa9__A4D01T_x5FJefW97Y64bFLvro1XSrrgE700x18tGimzvNgUXymsZ_6J4Ts-iUoxM0kL8NSQlWDDPVEG0d1wXsZo54N59Js4R5GNkje9fgLjUy7k6Q5KzvDRJh3L5X_Qn5rlpw9wYB37OnyvJbZVI08ecv5CdUlJKs1WewMpzkRbhBKyLc4Pmx_ckS-bWy5oD9cggzYlkjJT3IxBsNDkk5qe5X3nJFbeJWXcP0OefVs2i48u8qPi1lP_3syk480avQtC0zCekedoaGNqvJj9uuMTnsHxPNR3qyuTmyfBZCchAODHN09_BDTT28zeCy4lFMi2QEdA2xao3dx3wy3GjIPsUfLvFDo-LZWc4V4-0ibAZ7-ZKMz-HpRCD9AU-hv3POfbzJu4Lsa14JArtid6l3T399X4MnCcT6BWQznkJVo7hzZAQmykKgfzhEjrfKhGLxnQR401Lx3hw.EBMn0i-gTe1IYYG6hPVZuA',
  origin: 'https://spacez-marketplace-v2.netlify.app',
  pragma: 'no-cache',
  referer: 'https://spacez-marketplace-v2.netlify.app/user/settings/olaf63?code=_RFZKvyUuXvltZdHJ2ijqqHwpvwDvK4zW4kShQE8DOV8d&state=eyJyZXR1cm5UbyI6Imh0dHBzOi8vc3BhY2V6LW1hcmtldHBsYWNlLXYyLm5ldGxpZnkuYXBwL3VzZXIvc2V0dGluZ3Mvb2xhZjYzIn0',
  'sec-ch-ua': '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"',
  'sec-ch-ua-mobile': '?0',
  'sec-ch-ua-platform': '"macOS"',
  'sec-fetch-dest': 'empty',
  'sec-fetch-mode': 'cors',
  'sec-fetch-site': 'same-origin',
  'sentry-trace': '98fe8aca718e4f9489405e7f038c348c-b8aac1b07d20aaed-1',
  'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36',
  'x-country': 'IT',
  'x-forwarded-for': '93.37.120.66',
  'x-forwarded-proto': 'https',
  'x-language': 'en',
  'x-nf-account-id': '5a280b7c4c4b9334433b4465',
  'x-nf-client-connection-ip': '93.37.120.66',
  'x-nf-deploy-id': '65001759db270c0007ad45df',
  'x-nf-geo': 'eyJjaXR5IjoiUm9tZSIsImNvdW50cnkiOnsiY29kZSI6IklUIiwibmFtZSI6Ikl0YWx5In0sInN1YmRpdmlzaW9uIjp7ImNvZGUiOiI2MiIsIm5hbWUiOiJMYXppbyJ9LCJ0aW1lem9uZSI6IkV1cm9wZS9Sb21lIiwibGF0aXR1ZGUiOjQxLjg5MDQsImxvbmdpdHVkZSI6MTIuNTEyNn0=',
  'x-nf-request-id': '01HA464BAPC3GRTNNKN46D8P5G',
  'x-nf-site-id': '2058b0dd-166a-4c3e-9891-85519bd453e7',
  connection: 'close',
  'x-prerender-revalidate': '801a7d2cd5a2815d1019151b5ab7b5e1'
}

And finally the error.

AxiosError: Request failed with status code 404
    at settle (file:///var/task/node_modules/axios/lib/core/settle.js:19:12)
    at BrotliDecompress.handleStreamEnd (file:///var/task/node_modules/axios/lib/adapters/http.js:572:11)
    at BrotliDecompress.emit (node:events:525:35)
    at BrotliDecompress.emit (node:domain:489:12)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  code: 'ERR_BAD_REQUEST',
  config: {
    transitional: {
      silentJSONParsing: true,
      forcedJSONParsing: true,
      clarifyTimeoutError: false
    },
    adapter: 'http',
    transformRequest: [ [Function: transformRequest] ],
    transformResponse: [ [Function: transformResponse] ],
    timeout: 0,
    xsrfCookieName: 'XSRF-TOKEN',
    xsrfHeaderName: 'X-XSRF-TOKEN',
    maxContentLength: -1,
    maxBodyLength: -1,
    env: { FormData: [Function], Blob: [Function: Blob] },
    validateStatus: [Function: validateStatus],
    headers: Object [AxiosHeaders] {
      Accept: '*/*,image/webp',
      'Content-Type': 'multipart/form-data',
      host: 'spacez-marketplace-v2.netlify.app',
      'accept-encoding': 'br',
      'accept-language': 'en,de;q=0.9,en-US;q=0.8,zh;q=0.7,fr;q=0.6,en-CA;q=0.5,fr-CA;q=0.4',
      baggage: 'sentry-environment=production,sentry-release=81fb0618e69409baf0ace137cfd4ed93c6d4a4e3,sentry-public_key=84db159d04954792ad83cabd58710a1e,sentry-trace_id=98fe8aca718e4f9489405e7f038c348c',
      'cache-control': 'no-cache',
      'cdn-loop': 'netlify',
      'content-length': '1020350',
.....

I am banging my head against wall already. Any help would greatly appreciated.

Thanks
Olaf

Hi, what site is this?