Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

237
Views
Cómo cargar un archivo en un directorio al depósito minIO

Hola a todos, tengo un depósito en el servidor minio y el nombre del depósito es 'geoxing' y geoxing tiene el directorio img/site. quiero cargar una imagen en el directorio del sitio usando nodejs. a continuación se muestra el código y recibo un error Nombre de depósito no válido: geoxing/img/site. como puedo solucionar este error. Gracias

 savefile() { const filePath = 'D://repositories//uploads//geoxing//site//b57e46b4bcf879839b7074782sitePic.jpg'; const bucketname = 'geoxing/img/site' var metaData = { 'Content-Type': 'image/jpg', 'Content-Language': 123, 'X-Amz-Meta-Testing': 1234, example: 5678, }; this.minioClient.fPutObject( bucketname, 'b57e46b4bcf879839b7074782sitePic.jpg', filePath, metaData, function (err, objInfo) { if (err) { return console.log(err); } return console.log('Success', objInfo.etag); }, ); }
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

En Amazon S3 y Minio:

  • El cubo debe ser solo el nombre del cubo (por ejemplo geoxing )
  • La clave debe incluir la ruta completa , así como el nombre del archivo (por ejemplo img/site/b57e46b4bcf879839b7074782sitePic.jpg )

Amazon S3 y Minio no tienen "carpetas" ni "directorios", pero emulan los directorios al incluir el nombre de la ruta en la Key . No es necesario crear carpetas antes de cargarlas en una carpeta; simplemente aparecen mágicamente cuando los archivos se almacenan en esa 'ruta'.

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!