# Upload form should be submitted to this location location /upload-file/ { š# Pass altered request body to this location šupload_passšš @php; šupload_pass_args on;
šupload_limit_rate 500k;
š# Store files to this location šupload_store /tmp/uploads/;
š# Allow uploaded files to be read only by user šupload_store_access user:rw;
š# Set specified fields in request body š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;
š# Inform backend about hash and size of a file
š#upload_aggregate_form_field "${upload_field_name}_md5" $upload_file_md5; šupload_aggregate_form_field "${upload_field_name}_name" $upload_file_name; šupload_aggregate_form_field "${upload_field_name}_size" $upload_file_size;
š# Pass matching fields from client to backend šupload_pass_form_field "^submit$|^description$^file$"; šupload_cleanup 400 404 499 500-505; štrack_uploads proxied 30s; š}