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   3875 Views

Avatar
Media Contour

13 March 2010 at 9:03am Community Member, 33 Posts

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

13 March 2010 at 9:05am Community Member, 33 Posts

Chrome gives this error.

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

Avatar
UncleCheese

13 March 2010 at 9:16am 4085 Posts

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

Avatar
Media Contour

13 March 2010 at 10:42am Community Member, 33 Posts

Now I get this error.

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

Avatar
UncleCheese

13 March 2010 at 10:49am 4085 Posts

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

16 March 2010 at 6:25am Community Member, 33 Posts

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

Avatar
UncleCheese

16 March 2010 at 6:28am 4085 Posts

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

16 March 2010 at 6:43am Community Member, 33 Posts

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