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 Piehler <firstname.lastname@example.org> Subject: Re: [Radiant] Page_Attachments To: email@example.com Message-ID: <firstname.lastname@example.org> 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.
on 2007-06-06 11:55
on 2007-06-06 14:32
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
on 2007-06-06 20:59
Sean Cribbs 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.
on 2007-06-07 00:23
David Piehler wrote: > Sean Cribbs 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.