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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

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


Go to End


9 Posts   5542 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, 4102 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, 4102 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, 4102 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