Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

386
Vistas
nginx upload file and change its name

I use next config to save files on nginx. It works fine but filenames becomes like 0000001234. Is there a way to change filenames to original?

Here is the same question, the reply suggests to use additional header with original filename but there's no clear answer how to use it and how to rename the file.

  limit_except POST          { deny all; }

  client_body_temp_path      /www/sitename/uploads;
  client_body_in_file_only   on;
  client_body_buffer_size    128K;
  client_max_body_size       100000M;

  proxy_pass_request_body off;
  proxy_pass_request_headers on;

  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;

  proxy_set_header           X-FILE $request_body_file;
  proxy_set_body             off;
  proxy_redirect             off;
  proxy_pass                 http://farm1;
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

It seems it is not supported as a module

  • https://github.com/fdintino/nginx-upload-module/issues/69
  • https://serverfault.com/questions/475755/nginx-upload-module-and-file-names
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda