# Testing file upload to / download from database

**URL:** <https://www.ruby-forum.com/t/testing-file-upload-to-download-from-database/111956>\
**Category:** Rails\
**Created:** [August 13, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/testing-file-upload-to-download-from-database/111956 "2007-08-13T20:54:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpwood](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/d6d6ee/32.png) [@wpwood](https://www.ruby-forum.com/u/wpwood)\
**Post date:** [August 13, 2007, 8:54pm UTC](https://www.ruby-forum.com/t/testing-file-upload-to-download-from-database/111956/1 "2007-08-13T20:54:49Z")

</div>

Greetings!

I need to test that a file got successfully saved to our database, and  
then that it got successfully downloaded. I’ve found some snippets on  
the upload side, but nothing on how to test that a file stored in the  
database get’s successfully delivered to the user.

Anybody know of anything, or got any ideas about how best to go about  
this? I’m having some trouble getting my arms around it conceptually.

TIA,  
Bill
