# Upload module 2.0.12

**URL:** <https://www.ruby-forum.com/t/upload-module-2-0-12/184388>\
**Category:** NGINX\
**Created:** [March 1, 2010, 8:50pm UTC](https://www.ruby-forum.com/t/upload-module-2-0-12/184388 "2010-03-01T20:50:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valery\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ee7513/32.png) [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Post date:** [March 1, 2010, 8:50pm UTC](https://www.ruby-forum.com/t/upload-module-2-0-12/184388/1 "2010-03-01T20:50:46Z")

</div>

Greetings!

Changes in version 2.0.12:

- Fixed bug: keepalive connection was hanging after upload has been  
completed;
- Change: if request method is not POST return HTTP 405 in order to  
simplify configuration.

This release fixes annoying keepalive issue and introduces a small  
change which allows to process non-POST request in alternative location:

location /upload {  
upload\_pass @a;

```
 [...]

 error_page 404 = @non_post_request;

```

}

location @non\_post\_request {  
# process non-POST requests here

```
 [...]

```

}

Please see this page for details:  
[http://www.grid.net.ru/nginx/upload.en.html](http://www.grid.net.ru/nginx/upload.en.html)

–  
Best regards,  
Valery K.

---

<div class="post-metadata">

**Author:** ![Valery\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ee7513/32.png) [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Post date:** [March 1, 2010, 8:56pm UTC](https://www.ruby-forum.com/t/upload-module-2-0-12/184388/2 "2010-03-01T20:56:02Z")

</div>

Valery K. wrote:

> change which allows to process non-POST request in alternative location:
> 
> location /upload {  
> upload\_pass @a;
> 
> ```
> [...]
> 
> ```

- 

```
error_page 404 = @non_post_request;

```

- 

```
error_page 405 = @non_post_request;

```

This is of course 405. Sorry for noise.

> 

–  
Best regards,  
Valery K.
