Ciao ragazzi,
Sto usando la versione 3.4.0.beta3-dev e sto riscontrando l’errore menzionato (ma solo nell’interfaccia utente, non nei log) quando tento di caricare un’immagine in un argomento.
La mia configurazione è la seguente:
["s3_upload_bucket", "<nome_bucket>/discourse-uploads"],
["s3_backup_bucket", "<nome_bucket>/discourse-backups"],
["s3_region", "eu-central-1"],
["s3_use_acls", "f"],
["enable_direct_s3_uploads", "f"],
["enable_s3_uploads", "t"],
["s3_access_key_id", ""],
["s3_secret_access_key", ""]
e sto usando il profilo dell’istanza EC2 e sovrascrivo le credenziali.
Ricevo l’errore nell’interfaccia utente:
ma il log mi dice che è andato tutto bene:
Started POST "/uploads.json?client_id=bb1ab05dbb9d4d1f9930d05f28b17f94" for 10.x.x.x at 2024-12-13 11:46:35 +0000
Processing by UploadsController#create as JSON
Parameters: {"upload_type"=>"composer", "pasted"=>"true", "name"=>"image.png", "type"=>"image/png", "sha1_checksum"=>"a0f0fe1abd27ce137e0e1b2a28cd9348a08112ff", "file"=>#<ActionDispatch::Http::UploadedFile:0x00007f50b8b01db8 @tempfile=#<Tempfile:/tmp/RackMultipart20241213-386-i7xkqa.png>, @content_type="image/png", @original_filename="image.png", @headers="Content-Disposition: form-data; name=\"file\"; filename=\"image.png\"\r\nContent-Type: image/png\r\n">, "client_id"=>"bb1ab05dbb9d4d1f9930d05f28b17f94"}
Completed 200 OK in 36ms (Views: 0.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
Completed 418 in 23ms (Views: 0.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.4ms)
Il bucket è vuoto in seguito (sto solo configurando questo con un bucket nuovo).
Qualche suggerimento?
Grazie,
WS





