Using multer library in backend and hosting it to cyclic.sh gives EROFS error

169 Views Asked by At

I have used multer in my project to get audio files from the frontend application and store that audio file inside uploads folder present in the root directory of my Node.js application.

After hosting the server in cyclic.sh it's giving me error Error: EROFS

I read cyclic.sh is read only and to store files we need S3 AWS bucket provided by cyclic.sh and using @cyclic.sh/s3fs package but I cant figure out how to solve my problem using this package.

I changed my fs the way mentioned in https://github.com/cyclic-software/s3fs but it doesn't work.

How could I store the files in uploads folder using this package or by any other method?

0

There are 0 best solutions below