woofed-crm
woofed-crm copied to clipboard
Como configurar o storage para utilizar o S3
Existe a posibilidade de configurar o crm para usar o storage S3 da aws ? Tentei com o código abaixo, mas não funciona e retorna o erro "Files Invalid files"
- ACTIVE_STORAGE_SERVICE=amazon
- S3_BUCKET_NAME=
- AWS_ACCESS_KEY_ID=
- AWS_SECRET_ACCESS_KEY=
- AWS_REGION=
O erro, acontece em varios formatos de arquivos, exemplo para a rota abaixo. POST /accounts/1/contacts/1/events?stage_id=1
Dados do envio
authenticity_token: vcGHvPy9...
event[kind]: note
event[from_me]: true
event[deal_id]: 1
event[contact_id]: 1
event[stage_id]:
event[content]: <div>teste nota</div>
event[files][]: eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBEUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--6cf462b0a1d77a246bc0fd498374304605ff4550
commit: Confirmar
Retorno com erro
Request URL: .../accounts/1/contacts/1/events?stage_id=1
Request Method: POST
Status Code: 422 Unprocessable Content
Remote Address: 54........:443
Referrer Policy:strict-origin-when-cross-origin
Config cors no S3
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"PUT",
"POST",
"DELETE",
"GET"
],
"AllowedOrigins": [
"https://.....com.br"
],
"ExposeHeaders": [
"Origin",
"Content-Type",
"Content-MD5",
"Content-Disposition"
],
"MaxAgeSeconds": 3600
}
]