amirash
amirash

Reputation: 2449

multi file upload via form api drupal6

hey, im trying to do a multi file upload on my form, i used form api for that and drupal_render , but i cant find where i can do $form['uploadfield']=array(...multi files amount=3)

anyone has code to implment multi file upload in form api on d6?

Upvotes: 0

Views: 1402

Answers (1)

Laxman13
Laxman13

Reputation: 5211

Currently I do not think this is possible through the FAPI. See the discussions below: http://drupal.org/node/452446

http://drupal.org/node/625958

There are some other options however. You can try using a Drupal module that implements this such as SWFUpload or Image FUpload (if you want to upload images).

SWFUpload can be used with CCK's Filefield and Image FUpload can be used with CCK's imagefield

EDIT: If your form is used for a custom content type, these articles/discussions should be helpful to you: http://drupal.org/node/722268
http://drupal.org/node/702156
http://www.openbandlabs.com/blog/2009/06/programmatic-cck-content-type-creation

Using these methods, people have been able to add a CCK FileField to their custom content type.

Upvotes: 1

Related Questions