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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

TypeError: Result of expression 'form.onsubmit' [null] is not a function.


Go to End
Reply


9 Posts   3945 Views

Avatar
Media Contour

Community Member, 33 Posts

13 March 2010 at 9:03am

When trying to upload a file I get the following error message on Safari but not on Firefox. Any help?

TypeError: Result of expression 'form.onsubmit' [null] is not a function.

Avatar
Media Contour

Community Member, 33 Posts

13 March 2010 at 9:05am

Chrome gives this error.

TypeError: Property 'onsubmit' of object #<an HTMLFormElement> is not a function

Avatar
UncleCheese

Forum Moderator, 4092 Posts

13 March 2010 at 9:16am

Make sure you're on the latest version of the SWFUpload module.

Avatar
Media Contour

Community Member, 33 Posts

13 March 2010 at 10:42am

Now I get this error.

There was a problem with the upload.
The server did not accept it.

Avatar
UncleCheese

Forum Moderator, 4092 Posts

13 March 2010 at 10:49am

It's a PHP error of some sort. Refer to the docs for the steps on troubleshooting SWFUpload responses.

http://doc.silverstripe.org/doku.php?id=modules:swfuploadfield#troubleshooting

Avatar
Media Contour

Community Member, 33 Posts

16 March 2010 at 6:25am

It looks like the upload works on small files (~4MB) but not larger files (~11MB).

Avatar
UncleCheese

Forum Moderator, 4092 Posts

16 March 2010 at 6:28am

Yeah, check your upload_max_filesize and max_post_size settings. The lesser of the two will be the ceiling for your uploads. SWFUploadConfig should automatically set the limit to upload_max_filesize.

Avatar
Media Contour

Community Member, 33 Posts

16 March 2010 at 6:43am

Where do I edit upload_max_filesize and max_post_size?

I tried the php.ini file and they're set at about 64MB.

Go to Top