CLASSROOMIO-T-95: Move upload to express server

This commit is contained in:
Rotimi Best
2023-08-11 14:23:23 +01:00
parent 8d0b5921c1
commit eaeed1b327
3 changed files with 65 additions and 22 deletions
@@ -1,3 +1,10 @@
/**
* This code isn't used anymore due to vercels 4.5MB limit of file sizes
* I will leave it here for reference and learning purposes
* The code has now been moved to classroomio-server, our express.js backend
*
* Read more: https://vercel.com/guides/how-to-bypass-vercel-body-size-limit-serverless-functions
* */
import { S3Client, PutObjectCommand, GetObjectCommand } from '@aws-sdk/client-s3';
import FormData from 'form-data';
import axios from 'axios';