# Fileupload via ftp and attachment\_fu

**URL:** <https://www.ruby-forum.com/t/fileupload-via-ftp-and-attachment-fu/121106>\
**Category:** Rails\
**Created:** [November 23, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/fileupload-via-ftp-and-attachment-fu/121106 "2007-11-23T21:35:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jawosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/f04885/32.png) [@jawosis](https://www.ruby-forum.com/u/jawosis)\
**Post date:** [November 23, 2007, 9:35pm UTC](https://www.ruby-forum.com/t/fileupload-via-ftp-and-attachment-fu/121106/1 "2007-11-23T21:35:50Z")

</div>

How can I use attachment\_fu to store files in a MySQL database  
(db\_file) which I uploaded  
via ftp in a special directory?

I need to upload files - large images 25-40 MB -, so my intention ist  
to upload them  
via ftp and then use attachment\_fu to strore them in a MySQL database.

I had problems in uploading such files via a form - timeouts.

I need them in a database because we have a very complicated rights-  
matrix for  
accessing this files.

Thanx.

–  
Jochen
