Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page with File Upload doesn't work (Error saving content or Error in Ajax Evaluator). Please help.


Reply

3 Posts   1186 Views

Avatar
banal

26 February 2008 at 7:14am (Last edited: 26 February 2008 8:39pm), Community Member, 901 Posts

Hi forum

I created a new Page-Type and added the following fields to the DB

static $has_one = array(
   'MyFile' => 'File',
   'Preview' => 'Image'
);

I added the appropriate Form Fields to the Tabs in getCMSFields.
Whenever i try to save such a Page, i get a Error: Error saving content.

It works fine when i remove the 'File' field.
The 'Image' upload always works, what could be the Problem with 'File'?

Edit
Rephrased Topic Title for clarity.

Avatar
banal

26 February 2008 at 8:34pm Community Member, 901 Posts

I changed the FileField to FileIFrameField, now the upload works, but whenever i try to save the page i get:
Error in Ajax evaluator on line 974: invalid flag after regular expression

The document is actually being saved, but the error message is really annoying.
Could somebody please help me resolve this? Or maybe tell me where this error comes from? Is there some sort of Error-Log with a more detailed description, since i really don't have a clue where to start debugging.

Thanks a ton

Avatar
banal

28 February 2008 at 9:38pm Community Member, 901 Posts

Anybody?
Is there a workaround for this?