Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m using the ngx_http_upload_module in Nginx to handle file uploads. Currently, it saves the uploaded files with an incrementing number instead of their original names. I want to preserve the original filenames when saving these files to my specified directory. I understand that the module allows access to the original file name through the $upload_file_name variable, but I’m not sure how to effectively use this to save the file under its original name.
Is there a direct way to configure the ngx_http_upload_module to save files with their original names?
Here is my current nginx code:
location /upload {
upload_pass @backend;
upload_store /var/upload;
upload_set_form_field $upload_field_name.name "$upload_file_name";
upload_set_form_field $upload_field_name.content_type "$upload_content_type";
upload_set_form_field $upload_field_name.path "$upload_tmp_path";
upload_aggregate_form_field "$upload_field_name.md5" $upload_file_md5;
upload_aggregate_form_field "$upload_field_name.size" $upload_file_size;
upload_cleanup 400 404 499 500-505;
}
location @backend {
proxy_pass http://localhost:8080;
}
ebeecroft
68aa2215160846bca0a00f952c5fdc
009fd274aeae48f2bfbda6ef568676
Cloudstream Apk
032f50ee7f7d489db3b05e204fe139
032f50ee7f7d489db3b05e204fe139
Edward Sitarski
ebeecroft
dashan
34bcef38725b4e6eb5224ae028f17e