# Keep what was uploaded even if browser disconnects

**URL:** <https://www.ruby-forum.com/t/keep-what-was-uploaded-even-if-browser-disconnects/221423>\
**Category:** NGINX\
**Created:** [July 13, 2012, 12:37pm UTC](https://www.ruby-forum.com/t/keep-what-was-uploaded-even-if-browser-disconnects/221423 "2012-07-13T12:37:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [July 13, 2012, 12:37pm UTC](https://www.ruby-forum.com/t/keep-what-was-uploaded-even-if-browser-disconnects/221423/1 "2012-07-13T12:37:20Z")

</div>

Hi all, this might be a little mental, but I have Actionscript code in  
the browser that kicks off a HTTP POST of a binary body thats about 1MB  
in size. If the user navigates away from the page, or somehow the  
browser disconnects, I’d like to be able to get whatever data was  
uploaded, even if its only 10% of the body.

Is there any way I can do that? Even if it means telling nginx not to  
clean up temporary files, that would work.

Basically I’m doing this for analytics purposes.

Thanks very much!  
Mike.

Posted at Nginx Forum:

> **[Keep what was uploaded even if browser disconnects](https://forum.nginx.org/read.php?2,228573,228573#msg-228573)**
>
> Hi all, this might be a little mental, but I have Actionscript code in the browser that kicks off a HTTP POST of a binary body thats about 1MB in size. If the user navigates away from the page, or somehow the browser disconnects, I'd like to be able...
