Re: Radiant Digest, Vol 15, Issue 18

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. [email protected]
Subject: Re: [Radiant] Page_Attachments
To: [email protected]
Message-ID: [email protected]
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.

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

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.

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.