1
ccrstudioweb
NEWS multi upload files

Hi, I need help on NEWS module.
I want news to upload several files in one action. Look the images on this article near the footer:

http://www.piracemafm.com.br/modules/news/article.php?storyid=63

To have this I need to upload one and save the article. After, I edit the same article and submit another file, so I reedit and send the third....

I´d like to submit 3, 4, 5 at once.
I tryied to duplicate the folowing line on news/includes/storyform.inc.php

$sform->addElement(new XoopsFormFile(_AM_SELFILE'attachedfile'$xoopsModuleConfig['maxuploadsize']), false);


It duplicated the file upload field, but when using it, only the last one is attached.
Any ideia?
Thanks in advanced!

2
ghia
Re: NEWS multi upload files
  • 2009/9/22 19:58

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


You need to make the upload fields a different name or array and also the processing of the submitted form must be extended to process multiple files at once.

Login

Who's Online

274 user(s) are online (190 user(s) are browsing Support Forums)


Members: 0


Guests: 274


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits