# Page\_attachments does not save anything

**URL:** <https://www.ruby-forum.com/t/page-attachments-does-not-save-anything/122396>\
**Category:** Radiant CMS\
**Created:** [December 7, 2007, 8:58am UTC](https://www.ruby-forum.com/t/page-attachments-does-not-save-anything/122396 "2007-12-07T08:58:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ulf\_Moehring](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/a5b964/32.png) [@Ulf\_Moehring](https://www.ruby-forum.com/u/Ulf_Moehring)\
**Post date:** [December 7, 2007, 8:58am UTC](https://www.ruby-forum.com/t/page-attachments-does-not-save-anything/122396/1 "2007-12-07T08:58:08Z")

</div>

Hi all,

I just installed the page\_attachments extension according to the  
instructions on the wiki page. Everything seems to work on the UI  
side since the attachment menu shows up and I can upload files. It  
seems, however, that none of the files are actually saved even though  
I don’t any error message. Here’s what my log says:

## – Processing PageController#edit (for 69.181.155.144 at 2007-12-07 07:29:13) [POST] Session ID: 30150eb9e9fea7af5e53b4b2d516d832 Parameters: {“continue”=\>“Save and Continue Editing”, “part”=\> {“0”=\>{“name”=\>“body”, “filter\_id”=\>“”, “content”=\>“”}, “1”=\> {“name”=\>“extended”, “filter\_id”=\>“”, “content”=\>“\<r:snippet name= "BeginWidgetHeader" /\>\r\n \<img alt="About us" border=0 src="/ images/about\_us.png"\>\r\n\<r:snippet name="EndWidgetHeader" /\>\r\n\r \n\<r:snippet name="BeginWidget" /\>\r\n Want all the information in one, printable document? Download all travel information as PDF.\r \n\<r:snippet name="EndWidget" /\>”}}, “action”=\>“edit”, “id”=\>“3”, “controller”=\>“admin/page”, “page”=\>{“slug”=\>“travelinfo”, “class\_name”=\>“DynamicPage”, “title”=\>“Travel Info”, “breadcrumb”=\>“Travel Info”, “lock\_version”=\>“34”, “enable\_comments”=\>“0”, “add\_attachments”=\>[#\<File:/tmp/CGI9097-14\>], “status\_id”=\>“100”, “layout\_id”=\>“4”}} Redirected to [http://ges.projecttray.com/admin/pages/edit/3](http://ges.projecttray.com/admin/pages/edit/3) Completed in 0.06352 (15 reqs/sec) | DB: 0.01669 (26%) | 302 Found [[http://ges.projecttray.com/admin/pages/edit/3](http://ges.projecttray.com/admin/pages/edit/3)]

The log shows the tempfile created but it seems that it doesn’t get  
processed further. The page\_attachments table remains empty. Maybe  
validation failed even though I can’t see why. Do I need to create a  
files directory somewhere? Is there anything else I should try?

I’m using Radiant 0.6.4 and page\_attachments 0.2

Thanks,  
Ulf

EMAIL: removed\_email\_address@domain.invalid | SKYPE: ULF.MOEHRING | AIM:  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Ulf\_Moehring](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/a5b964/32.png) [@Ulf\_Moehring](https://www.ruby-forum.com/u/Ulf_Moehring)\
**Post date:** [December 7, 2007, 3:07pm UTC](https://www.ruby-forum.com/t/page-attachments-does-not-save-anything/122396/2 "2007-12-07T15:07:33Z")

</div>

Ulf,

Check the permissions on the public/ directory of your Radiant project  
and make sure that the user your app server (Mongrel or FCGI) runs as  
has write access to that directory. It’s possible that the file  
wouldn’t save.

Sean

---

<div class="post-metadata">

**Author:** ![Ulf\_Moehring](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/a5b964/32.png) [@Ulf\_Moehring](https://www.ruby-forum.com/u/Ulf_Moehring)\
**Post date:** [December 7, 2007, 5:34pm UTC](https://www.ruby-forum.com/t/page-attachments-does-not-save-anything/122396/3 "2007-12-07T17:34:18Z")

</div>

I have other problem, when I add this extension in Edit page below body  
I see a green plus which and label with “(0)” in the end. But when I  
click on plus nothing action begins.

---

<div class="post-metadata">

**Author:** ![Ulf\_Moehring](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/a5b964/32.png) [@Ulf\_Moehring](https://www.ruby-forum.com/u/Ulf_Moehring)\
**Post date:** [December 7, 2007, 11:53pm UTC](https://www.ruby-forum.com/t/page-attachments-does-not-save-anything/122396/4 "2007-12-07T23:53:18Z")

</div>

Michael,

Make sure to use the included rake task to copy the included javascript  
and stylesheets to your public directory.

Sean

---

<div class="post-metadata">

**Author:** ![Ulf\_Moehring](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/a5b964/32.png) [@Ulf\_Moehring](https://www.ruby-forum.com/u/Ulf_Moehring)\
**Post date:** [December 7, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/page-attachments-does-not-save-anything/122396/5 "2007-12-07T20:57:21Z")

</div>

Sean,

thanks for the suggestion. Unfortunately that wasn’t the problem…

Ulf

On Dec 7, 2007, at 6:06 AM, Sean C. wrote:

> Ulf,
> 
> Check the permissions on the public/ directory of your Radiant project  
> and make sure that the user your app server (Mongrel or FCGI) runs as  
> has write access to that directory. It’s possible that the file  
> wouldn’t save.
> 
> Sean

EMAIL: removed\_email\_address@domain.invalid | SKYPE: ULF.MOEHRING | AIM:  
removed\_email\_address@domain.invalid
