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

347
Views
¿Cómo puedo enviar el nombre modificado para el archivo subido a través de Uppy?

Puedo modificar el nombre del archivo y lo mostrará en la consola. ¿Cómo puedo enviar este nombre al servidor para que el servidor pueda usar el nombre? Muestra en la consola que los archivos tienen los nombres actualizados, pero no puedo hacer que envíe los nombres actualizados al servidor en la solicitud.

 var uppy = new Uppy.Core({ autoProceed: true, onBeforeFileAdded: (currentFile, files) => { console.log(currentFile.data.lastModified); datePhotoTaken = currentFile.data.lastModified; // Change the file name to the last modified date. This doesn't seem to be coming through the XHR upload process unfortunately. const modifiedFile = { ...currentFile, name: currentFile.data.lastModified + ".jpg" } return modifiedFile }, onBeforeUpload: (files) => { console.log('updated files', files) // files here have `new-name` and empty `data` }, restrictions: { allowedFileTypes: ['image/*'] } }) .use(Uppy.Dashboard, { inline: true, disableThumbnailGenerator: true, showSelectedFiles: false, target: '#drag-drop-area', height: 250 }) .use(XHRUpload, { endpoint: uploadUrl fieldName: 'my_file', limit: limit, headers: { 'clientResize': clientResizeEnabled.toString() } }) uppy.on('complete', (result) => { console.log('Upload complete! We've uploaded these files:', result.successful) })
about 4 years ago · Santiago Gelvez
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!