parse-community / parse-server-s3-adapter

AWS S3 file storage adapter for Parse Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adapter not saving files in s3 bucket but in the mongo db.

aliasad106 opened this issue · comments

Here's my adapter settings

const S3Adapter = require('@parse/s3-files-adapter');
const s3Adapter = new S3Adapter({
  bucket: "my_bucket",
  directAccess: true,
  baseUrl: " https://buckeet.s3.us-west-004.backblazeb2.com", 
  baseUrlDirect: false,
  signatureVersion: 'v4',
  globalCacheControl: 'public, max-age=86400',
  region: 'us-west-004',
  s3overrides: {
    endpoint: "s3.us-west-004.backblazeb2.com", 
    accessKeyId: "xxxxxxxxxxxxxxxxxxxxxxx",
    secretAccessKey: "xxxxxxxxxxxxxxxxxxxxxxx"
  },
});

and then

config = {
appName: ...
.. 
  filesAdapter:s3Adapter
}

but it doesn't save in my s3 bucket.

I'm closing this as it does not seem to be a Parse Server S3 File Adapter issue.

@mtrezza How come it's not related to it ? It doesn't give any error as well and neither does it save files

You are describing a very basic functionality of the S3 adapter. It's more likely an issue with your custom code than with the adapter. Also, if files are stored in MongoDB rather than your S3 storage, then it may be more a Parse Server issue, because the S3 adapter does not store files in MongoDB. I suggest you investigate your custom setup and configuration and maybe ask for code support in our forum or chat. Once you can confirm that this is a bug, I suggest you open an issue in Parse Server.

Sorry my bad, I was just adding the s3 adapter within email adapter dictionary.

Glad you were able to solve it, if you need code support, consider joining our community chat.