Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8489161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:45:01+00:00 2026-06-10T21:45:01+00:00

I am doing some testing on my local machine using the nginx upload module

  • 0

I am doing some testing on my local machine using the nginx upload module with the upload progress module. Because I am local, uploads are almost instant and it’s hard to test and debug the upload progress module because of this.

I have added the directive: upload_limit_rate 8k to my nginx upload block as per the documentation: http://www.grid.net.ru/nginx/upload.en.html

After all this, uploading a file that is many megabytes is still instant… it seems
the upload rate limit is not working..

Here is my config block:

FULL CONFIG can be found here: http://pastie.org/4681229


location /upload {

# Pass altered request body to this location
    upload_pass   @unicorn;


    # Store files to this directory
    # The directory is hashed, subdirectories 0 1 2 3 4 5 6 7 8 9 should exist
    upload_store /Users/kirkquesnelle/Sites/porelo/tmp/uploads 1;

    # Allow uploaded files to be read only by user
    upload_store_access user:r;

    # 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.size" "$upload_file_size";

    upload_pass_form_field "^X-Progress-ID|^authenticity_token|^submit$|^description$";

    upload_cleanup 400 404 499 500-505;

    # Specifies upload rate limit in bytes per second. Zero means rate is unlimited.
    upload_limit_rate 8k;

    track_uploads proxied 30s;

}


Is there anything wrong with my config? Why would this not work?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:45:02+00:00Added an answer on June 10, 2026 at 9:45 pm

    Try to set the upload_limit_rate before your upload_pass directive. As the first line in your config block.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing and doing all the testing on a local machine using PHP
I'm doing some Unit/Integration testing in a Non-Java language (Python), using a test-framework (
I am doing some testing on a new html5-css3 framework and I want to
I'm currently doing some testing to determine the performance implications of including an index
I am doing some testing for a very large website, created many different developers.
I was just doing some random testing on locking in multi-threading this morning and
I am doing some initial testing for a Rails app which will be deployed
I'm doing some unit testing, and some of the code is checking to see
I am doing some performance testing and have found that SQL seems to be
I'm in the process of doing some advance IE8 testing, and it seems that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.