Page 1 of 1

Upload more then 1 file

Posted: Tue Jan 02, 2007 1:33 pm
by peugeot-304
First, a happy new year to the CMSMS community from the NL.

Now my question: I'm using CMSMS 1.0.2 and the Uploads module 1.2.3. I would like to offer visitors to my site the possibility to upload some pictures and/or files.
The uploads module off course makes it possible however only 1 picture/file at a time. Is there a way to extend the number of files/pictures to be uploaded?

I stripped the upload-template to my needs and tried to create more input fields - that worked out fine.


{$startform}{$input_key}
{if $noauthor }
{$input_author}
{else}
{$prompt_author}    {$input_author}
{/if}
{$prompt_upload}{$hidden}{$input_browse}
{$prompt_upload}{$hidden}{$input_browse}
{$prompt_upload}{$hidden}{$input_browse}
{$input_submit}
{$endform}


Unfortunately only the last file is uploaded after hitting the "submit" button even though all fields were populated.

If anybody could advise me how to solve that problem would be great.

Thanks in advance

Dieter

Re: Upload more then 1 file

Posted: Tue Jan 02, 2007 1:58 pm
by cyberman
peugeot-304 wrote: Unfortunately only the last file is uploaded after hitting the "submit" button even though all fields were populated.
Can't be done with current upload module.

You can place more than one {$input_browse} in your template but {$input_browse} can have only one value so system accept only the last value ...

Re: Upload more then 1 file

Posted: Tue Jan 02, 2007 2:36 pm
by peugeot-304
>:( Too bad.....  ???


anyway thanks Cyberman for the quick response.

Would be a good idea to add to a future release of the Uploads module.
So that the admin can indicate in preferences the number of files that visitors can upload in one go.

Dieter

Re: Upload more then 1 file

Posted: Tue Jan 02, 2007 2:38 pm
by cyberman
peugeot-304 wrote: Would be a good idea to add to a future release of the Uploads module.
Feel free to add a feature request on project page  :D ...

Re: Upload more then 1 file

Posted: Tue Jan 02, 2007 10:06 pm
by Elijah Lofgren
The FileManager module (a replacement for the built in FileManager) has the ability to upload up to 10 files a time: http://dev.cmsmadesimple.org/projects/filemanager

Maybe the code from that could be adapted to be used in the Uploads module.