Forum OpenACS Development: form submit hangs if it's a multipart

The Add Product form in ecommerce is hanging on submit. I don't see anything in the error log at all.

The  form tag is:
<form method=post action=add-2 enctype=multipart/form-data>

and the form has a number of fields.

If I remove enctype=multipart/form-data the form submits.

If I remove some 6 or so input fields the form submits. The fields removed don't seem to matter as long as enough are removed.

I am running Openacs 5.1 and ecommerce installed from the repository.

It is running AOLServer 4 which I think could be the issue.

Is anyone aware of this problem?

Collapse
Posted by Matthew Geddert on
AolServer 4, by default limits file upload sizes.... are you trying to upload something larger than 1MB? Check out this thread if this is the issue.

https://openacs.org/forums/message-view?message_id=183798

Collapse
Posted by David Cotter on
No - if I write a simple form thus:

<form enctype=multipart/form-data method=post action=xxx>
<input type=text name=t1>
<input type=text name=t1>
<input type=text name=t1>
<input type=text name=t1>
...
<input type=submit name=go>
</form>

If I have 16 text inputs the form submits if I have 17 or more the submit hangs.

Collapse
Posted by David Cotter on
This is a problem with AOLServer 4.1.0a. The problem doesn't occur on 4.0.8 (Thanks Cathy).