Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

294
Visualizações
Can't delete file in Fine uploader

I used node js sever code to upload files to aws s3. And succeed in uploading files to s3 bucket. But now i can't delete uploaded files from s3 bucket. in node js code are parameters of req.query.bucket and req.query.key. I don't understand what is meaning of bucket and key,so i don't know how to set this values in delete file options. Can you help me ?

node js API:

export function deletefile(req, res) {
   deleteFile(req.query.bucket, req.query.key, function(err) {
        if (err) {
            console.log("Problem deleting file: " + err);
            res.status(500);
        }
        res.end();
    });
};

delete file option of fine uploader in client

 ........
   deleteFile: {
                enabled: true,
                method: "POST",
                forceConfirm: true,
                endpoint: "/rest-api/deletefile"

            },......
about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

According to documentation:

Each Amazon S3 object has data, a key, and metadata. Object key (or key name) uniquely identifies the object in a bucket. Object metadata is a set of name-value pairs. You can set object metadata at the time you upload it. After you upload the object, you cannot modify object metadata. The only way to modify object metadata is to make a copy of the object and set the metadata.[1]

So, you have to provide your bucket identifier, and your object identifier to delete given object from the bucket

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda