# Mailer attach files that are posetd in a respository on the web

**URL:** <https://www.ruby-forum.com/t/mailer-attach-files-that-are-posetd-in-a-respository-on-the-web/153853>\
**Category:** Rails\
**Created:** [November 21, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/mailer-attach-files-that-are-posetd-in-a-respository-on-the-web/153853 "2008-11-21T21:57:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 21, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/mailer-attach-files-that-are-posetd-in-a-respository-on-the-web/153853/1 "2008-11-21T21:57:17Z")

</div>

I have set up my application to send e-mails along with attachments,  
however I would like the ability for the “browse” to search a file  
sharing repository that we have posted on the web. Right now it just  
searches and uploads files I have on my desktop. Has anyone had any  
success attaching files that are stored on a web page?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 21, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/mailer-attach-files-that-are-posetd-in-a-respository-on-the-web/153853/2 "2008-11-21T22:24:16Z")

</div>

Yes and No.

Do you mean just for you? Or for all your users?

If just for you, sure, just figure out a way to map a drive (windows)  
or mount a remote file share (osx/linux) and it will be available from  
the file picker.

If it’s something you want all your users to see … no. That’s not  
possible with the browser file input selector. You could create a  
page that lists the remote location files similar to a file input,  
like in a popup window or redbox, but you would have to implement that  
yourself in your app.

Hope that helps.

–  
James M.

On Fri, Nov 21, 2008 at 3:56 PM, removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 21, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/mailer-attach-files-that-are-posetd-in-a-respository-on-the-web/153853/3 "2008-11-21T22:38:55Z")

</div>

Yes it would need to be for all my users. I didn’t think it would be  
possible. Thank you for your help
