Loopback, nodejs

Error: maxFileSize exceeded, received 10551117 bytes of field data (max is 10485760)

When you try to upload file bigger that 20MB and if you get the error message “maxFileSize exceeded” then increase the maxFileSize on datasources.json file.

"filestorage": {
    "name": "filestorage",
    "connector": "loopback-component-storage",
    "provider": "amazon",
    "key": "Your aws s3 api key",
    "keyId": "Your aws s3 keyId",
    "maxFileSize": "52428800"
  }

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s