Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HenriqueLopes's avatar

importar arquivo csv no bucket s3

Hello, I'm having trouble importing the file into s3 using the filament package. I'm getting the error that the file could not be located, but the file is being saved in the 'temp' folder within the 'imports' folder.

.env: AWS_ACCESS_KEY_ID=meuID AWS_SECRET_ACCESS_KEY=Key AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET=emdia-new-dashboard AWS_URL=https://emdia-new-dashboard.s3.amazonaws.com AWS_USE_PATH_STYLE_ENDPOINT=true

filesystems.php: 's3' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_BUCKET'), 'url' => env('AWS_URL'), 'endpoint' => env('AWS_ENDPOINT'), // Use esta linha se precisar de um endpoint personalizado 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), // Certifique-se de que é booleano 'throw' => false, ],

method: protected function getHeaderActions(): array { return [ Action::make('imporC2Elegibilidade') ->label('Importar base') ->icon('bi-upload') ->form([ FileUpload::make('attachment') ->disk('s3') ->directory('imports') ]) ->action(function (array $data) { log('salvou o arquivo'); })

    ];

erro: Unable to check existence for: imports/temp/cDaEpqbqpQZnE14veL9AJDhgeAQqrj-metabGF5b3V0X2ltcG9ydF9hZ3YtaW1vYi5jc3Y=-.csv

0 likes
1 reply
Tray2's avatar

This is an English forum, so please write in English, it will increase the chances of getting help.

1 like

Please or to participate in this conversation.