# Re: Radiant Digest, Vol 15, Issue 18

**URL:** <https://www.ruby-forum.com/t/re-radiant-digest-vol-15-issue-18/106098>\
**Category:** Radiant CMS\
**Created:** [June 6, 2007, 11:55am UTC](https://www.ruby-forum.com/t/re-radiant-digest-vol-15-issue-18/106098 "2007-06-06T11:55:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [June 6, 2007, 11:55am UTC](https://www.ruby-forum.com/t/re-radiant-digest-vol-15-issue-18/106098/1 "2007-06-06T11:55:42Z")

</div>

Thanks David,

At least I know it isn’t just me now!

A couple of times I have found that uploading a “problem file” along  
with another couple of files sometimes seems to help, no idea why  
though. It doesn’t seem to actually be a file specific problem as I have  
had files that wouldn’t upload one day upload fine the next.

Sean I understand your point re standardisation and keeping the core  
radiant program from becoming bloated, but personally I think the  
page\_attachment extension is a great idea (current problems  
notwithstanding) and would love to see it as part of the core program

Sharon

Message: 4  
Date: Tue, 5 Jun 2007 21:36:25 +0200  
From: David P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [Radiant] Page\_Attachments  
To: removed\_email\_address@domain.invalid  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Content-Type: text/plain; charset=utf-8

I’m suddenly getting this same error with a PDF file I am trying to  
attach. Other files (PDF, JPG, and TXT) have worked fine up until this  
point and can be attached to the page, just not this specific PDF.

This e-mail has been scanned for all viruses by MessageLabs.

---

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [June 6, 2007, 2:32pm UTC](https://www.ruby-forum.com/t/re-radiant-digest-vol-15-issue-18/106098/2 "2007-06-06T14:32:07Z")

</div>

Sharon and David,

On certain systems, I’ve had inconsistent success with uploads. The  
crux of the matter seems to be that Ruby chooses, based on the file  
size, whether to store the buffer in a StringIO or in a Tempfile. I  
most often get errors with StringIO. Are the ‘problem files’ very small  
(i.e. under 10k)?

Sean

---

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [June 6, 2007, 8:59pm UTC](https://www.ruby-forum.com/t/re-radiant-digest-vol-15-issue-18/106098/3 "2007-06-06T20:59:33Z")

</div>

Sean C. wrote:

> Are the ‘problem files’ very small (i.e. under 10k)?

My problem file is a 1.1 MB pdf. It is happening when running Radiant in  
development mode in Mongrel on localhost Mac OS 10.5.

---

<div class="post-metadata">

**Author:** ![Sharon\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Sharon\_C](https://www.ruby-forum.com/u/Sharon_C)\
**Post date:** [June 7, 2007, 12:23am UTC](https://www.ruby-forum.com/t/re-radiant-digest-vol-15-issue-18/106098/4 "2007-06-07T00:23:44Z")

</div>

David P. wrote:

> Sean C. wrote:
> 
> > Are the ‘problem files’ very small (i.e. under 10k)?
> 
> My problem file is a 1.1 MB pdf. It is happening when running Radiant in  
> development mode in Mongrel on localhost Mac OS 10.5.

Just ran into the same issue on another page. 8 out of 12 PDF files  
(sized 0.5 to 4.5 MB) failed to attach, even on repeated tries.
