Comments (3)
I have not seen this one before. My suspicion is that it is due to your S3 configuration. (Is this right? endpoint: process.env.CDN_URL
)
Are you able to instantiate a standalone S3 client with your config and upload a file successfully? I think that is the only way we'll be able to troubleshoot.
The code would be something like this:
import * as AWS from '@aws-sdk/client-s3'
const client = new AWS.S3(config) // Same as in your payload config
await client.putObject({
// Object details
})
You can take a look at the plugin's internal code here to see what is used: https://github.com/payloadcms/payload/blob/beta/packages/plugin-cloud-storage/src/adapters/s3/handleUpload.ts#L21
from payload.
Thank you! @denolfe
It was indeed my s3 adapter config. These adapter settings along with with two env variables is working for me.
AWS_PROFILE
AWS_ENDPOINT_URL_<SERVICE>
adapter: s3Adapter({
config: {
region: process.env.AWS_REGION,
},
acl: 'private',
bucket: process.env.AWS_BUCKET_NAME,
}),
from payload.
Awesome, glad you were able to sort it out.
from payload.
Related Issues (20)
- Blocks in blocks not possible in v3 with Postgres HOT 2
- Type collision with generated types HOT 6
- Errors given by local api do not match exported errors
- Bug with Lexical Html converter including Fix
- Disabling auth local strategy causes /api/users/me to no longer work
- Node.js API not supported in Edge Runtime warnings when using basic Next.js middleware HOT 2
- Image resize bug - filename conflicts when two `imageSizes` configs are of the same dimensions HOT 1
- Nested blocks error with localization on Postgres DB
- Uploads with "%" in filename fail to show (s3Adapter) HOT 2
- i18n fallbacks do not work problem in the admin panel HOT 2
- Debounce for getFormState
- Missing request property in ListView payload.find calls HOT 1
- Meta title not working on Payload V3
- [Minor] Impossible to customize CSS properties without increasing CSS selector specificity or using `!important`
- Missing package @swc/core when installing with Yarn HOT 9
- Media upload request generates repeated query string that cause InvalidQueryStringException in AWS CloudFront gateway HOT 1
- X-HTTP-Method-Override breaks relationship field on AWS CloudFront hosting.
- Using svgr webpack with Payload HOT 2
- Cannot override default Cell component HOT 2
- Search and sort by localized field does not work: Error: Alias "XXX_locales" is already used in this query HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payload.