On 4.3RC form tag is erroneously built, 'enctype="multipart/form-data"' is not recognized and upload is not working.
It could be the same problem as the one with filestore and others.
before hacking the module, I would like to know if the way to tell Drupal the option ENCTYPE has changed, and which is the correct way to specify it.
Actually, in XSTORY module, you specify this

$param["options"] = 'enctype="multipart/form-data"';

but when the page is built, the syntax is not correct, and upload is not working.

Why don't we consider 'enctype="multipart/form-data' a standard option and build the form with this default ???

Please let me know...

Matteo

Comments

arsart’s picture

while you are waiting for an answer, can you tell how to hack this?
thanx a lot

matteo’s picture

I'm simply hardcoding it into form function..
by adding explicitely enctype="multipart/form-data" into form function as part of the FORM tag.
Some controls on drupal don't let me add the modified line to this comment.
If you need it, I can email the code to you...

Matteo
mailto:webmaster@cantincoro.org

blaine-1’s picture

In file xstory.module, function xstory_form (near line 193), replace the line

$param["options"] = 'enctype="multipart/form-data"';

with

$param["options"] = array("enctype" => "multipart/form-data");

www.blainepeterson.com

matteo’s picture

Blaine, thank you very much, it fixed the problem.

Matteo
mailto:webmaster@cantincoro.org