S3 Upload not working

image



image

Feature(s) impacted

AWS S3 Upload

Observed behavior

The file picker widget insert a base64 file in my database and the upload on S3 bucket not working.

Expected behavior

An upload on S3 bucket, preview the image in the show page on the back-office and insert the path of my file in database.

Failure Logs

No failure logs

Code

main.ts (NestJS) :

import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { createAgent } from '@forestadmin/agent';
import { createFileField } from '@forestadmin/plugin-aws-s3';
import { createSqlDataSource } from '@forestadmin/datasource-sql';

(async () => {
  const app = await NestFactory.create(AppModule, { logger: false });

  const agent = createAgent({
    authSecret: process.env.FOREST_AUTH_SECRET,
    envSecret: process.env.FOREST_ENV_SECRET,
    isProduction: process.env.NODE_ENV === 'production',
    typingsPath: './typings.ts',
    typingsMaxDepth: 5,
  });

  app.enableCors({
    origin: (origin, callback) => {
      const allowedOrigins = [
        'http://localhost:3000',
        'http://localhost:3001',
        'https://app.forestadmin.com',
      ];
      if (!origin || allowedOrigins.includes(origin)) {
        callback(null, true);
      } else {
        callback(new Error('Not allowed by CORS'));
      }
    },
    credentials: true,
  });

  agent.addDataSource(createSqlDataSource(process.env.DATABASE_URL));

  const IMAGES_S3 = [
    {
      collection: 'ClubInformation',
      field: 'logo',
    },
    {
      collection: 'Partner',
      field: 'image',
    },
    {
      collection: 'Post',
      field: 'image',
    },
    {
      collection: 'Player',
      field: 'image',
    },
    {
      collection: 'Team',
      field: 'image',
    },
    {
      collection: 'StaffMember',
      field: 'image',
    },
    {
      collection: 'AboutPage',
      field: 'image',
    },
    {
      collection: 'AboutPage',
      field: 'section2Image',
    },
    {
      collection: 'AboutPage',
      field: 'section3Image',
    },
    {
      collection: 'PricingPage',
      field: 'image',
    },
    {
      collection: 'PricingPage',
      field: 'section2Image',
    },
    {
      collection: 'PricingPage',
      field: 'section3Image',
    },
    {
      collection: 'TrainingsPage',
      field: 'image',
    },
    {
      collection: 'TrainingsPage',
      field: 'section2Image',
    },
    {
      collection: 'TrainingsPage',
      field: 'section3Image',
    },
    {
      collection: 'HomePage',
      field: 'heroImage',
    },
    {
      collection: 'HomePage',
      field: 'aboutImage',
    },
    {
      collection: 'HomePage',
      field: 'joinImage',
    },
    {
      collection: 'HomePage',
      field: 'whyJoinImage',
    },
  ];

  IMAGES_S3.forEach((data) => {
    agent.customizeCollection(data.collection, (collection) =>
      collection.use(createFileField, {
        fieldname: data.field,
        storeAt: (recordId, originalFilename) =>
          `images/${recordId}/${originalFilename}`,
        deleteFiles: false,
        readMode: 'url',
        acl: 'public-read',
        aws: {
          accessKeyId: process.env.AWS_ACCESS_KEY_ID,
          secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
          region: process.env.AWS_DEFAULT_REGION,
          bucket: process.env.AWS_S3_BUCKET_NAME,
        },
        objectKeyFromRecord: null,
      }),
    );
  });

  await agent.mountOnNestJs(app).start();

  await app.listen(3000);
})();

.env

AWS_ACCESS_KEY_ID="xxx"
AWS_SECRET_ACCESS_KEY="xxxx"
AWS_DEFAULT_REGION="eu-west-3"
AWS_S3_BUCKET_NAME="my-bucket-name"

Context

  • Project name: Club Pongiste Quevillais
  • Environment name: production and development
  • Agent (forest package) name & version: “@forestadmin/agent”: “^1.27.1”,
  • Database type: MySQL

Hello,
Do you have some logs to share on your agent side please? I will help us to debug your use case.

Hello @Alban_Bertolini ,

The log:

AAcO/xPCUXMgrL+Hq3hoqv2Cn2qa5lVVUwnU7RhEIQujxgAAQBg0ghH8RveD3Qkj9fX4/z69Xj5GbT/n4v6f3o1jsfn43i4Jl0ZBcwa02DWO+4ZdAa8kPjcUNgLVBGwIto//lYRz7MRxT/H/mnkX6QC+hxff8+vc834ZyUdaQBAIwBl9IfCX3/L/R8AAAABDiPSuBLr/80AyAhOM8gUB3X2p/DDM5SUyWOIlL1ZPqSkYzYDRAaCOCZ/0bmIV/yZjcEYfmNc59NI/hq9ZzuBVfRlylddQl7MhY7StFV2pSSXq/zlAbrdw9jCCHC1pxwAz08AAOeAFsiM6wwYEGoqY5rfUroo/O3xAPJ1zwBAGg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Hp5rgf1y8+oes/AICr3cvx7Px67DYoUp6NzWE/DqczC3+sAYAAC0A24+kQU3EPwUp60P0C+v6NEoAfFAAAICB/ADAAVg/4wHkcAEAW2gCPJZrX9J4YmRW118VF3mfif+0lHtZOzBgAm6ERkzHn4BOpvdfKDCaq6NDZNnfgxKgTeF9JHi8fYDUIWurwsztahVIzAGgwG0YKGhJbAwBkAQgAgCcATW493i7F//8DAB3rmVymaHZHKyyARZxBQWQAIJMACDLb+DYAAMz/4AFw9ezZ2B2PY3uGCWAAgBPPSgEAvzMA8MsJALg1A6AlW7mGdCaVp4UpGGmq1vk83UIdUjdNzGZS0m3mI4p7u7an27yQyF4AAJTV0C9IK5mAunM8FAw7FP8oHsAnzNRkbxsm+Waeg/ZfrFpSxVt7r7iLvEFgl/Jbebss/zwGAMK6xDVofU85cXE7ex/OAECADwIAbHiFiq/9RjbZrWRtoUyvHz6MzUqfI88PAHAAOARTREizpk755Z6bzdn43sLOqO5/AwCRpJJ5Gpp4ZKYgc9rYMN3/PE81MJ2D+Qbycxa9PRZZv18fAO8zg17+AGIBoLlJnxkUVHsxYZSDyOuMhXC2FUeoyrOALFWsQ/sQ8R6XxE7xjsX/B4BNAqECEgRkTt47AwAiEqpOa4p8ZICdt83rJo2j5JOJ4br9GRHssepe2y56HMFzBWYDk+mCVh6jMdcH8vt57UU6G4Z0+assJMDNVEmNwrwEa9G1YRoMKvaxJsWe4L0hu0NTJrSf1MTIWOM6q3iv9OS5jnn9MwCAZrVkAQQB8Gwj6zWTQR4CaoBL2hM/svaGy5nFHMGTPpJT86wzu4nXlVGjPKf0JzJkged6EDW5j/nzbjw8bMeHBzV5Ue+9hzfR3Q09hOhtsUbzHcaWYEbuxv8CUsvfECEB3IMAAAAASUVORK5CYII=
},
type: Posts
}
}

Data too long for column ‘image’ at row 1

Error:
at Query.run (/Users/valentinharrang/workspace/training/sport-club/api/node_modules/sequelize/src/dialects/mysql/query.js:46:25)
at /Users/valentinharrang/workspace/training/sport-club/api/node_modules/sequelize/src/sequelize.js:650:28
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at MySQLQueryInterface.bulkUpdate (/Users/valentinharrang/workspace/training/sport-club/api/node_modules/sequelize/src/dialects/abstract/query-interface.js:930:12)
at Function.update (/Users/valentinharrang/workspace/training/sport-club/api/node_modules/sequelize/src/model.js:3351:28)
at handleErrors (/Users/valentinharrang/workspace/training/sport-club/api/node_modules/@forestadmin/datasource-sequelize/src/utils/error-handler.ts:11:20)
at SequelizeCollection.update (/Users/valentinharrang/workspace/training/sport-club/api/node_modules/@forestadmin/datasource-sequelize/src/collection.ts:128:5)
at UpdateRelationCollectionDecorator.update (/Users/valentinharrang/workspace/training/sport-club/api/node_modules/@forestadmin/datasource-customizer/src/decorators/write/update-relations/collection.ts:20:7)
at CollectionHookDecorator.update (/Users/valentinharrang/workspace/training/sport-club/api/node_modules/@forestadmin/datasource-customizer/src/decorators/hook/collection.ts:110:5)
at UpdateRelationCollectionDecorator.update (/Users/valentinharrang/workspace/training/sport-club/api/node_modules/@forestadmin/datasource-customizer/src/decorators/write/update-relations/collection.ts:20:7)

Ty.
Do you have a column named ‘image’ in your database ?