No of upload fields

5 posts by 3 authors in: Forums > CMS Builder
Last Post: May 12, 2009   (RSS)

By avrom - May 8, 2009 - edited: May 8, 2009

Hi Dave, Hi Ross,

In the Upload dialog box, the number of upload fields is equivalent to the number of uploads allowed to a maximum of 10.

As I am launching a site where internet access is spotty at times, I only want to have one upload field displayed, so clients can only upload one file at a time, and don't try to upload too much kb all at once.

How would I change this to show just one upload field.

Thank you in advance,
Avrom :))

Re: [ross] No of upload fields

By avrom - May 11, 2009

Hi Ross,

Yes that is exactly right :)

Cheers
Avrom

Re: [virgodesign] No of upload fields

By Damon - May 12, 2009

Hi Avrom,

Open up this file to edit:
/cmsAdmin/lib/menus/default/uploadForm.php

On line 85 find this code:

<?php foreach (range(1, (int) min($uploadsRemaining, 10)) as $count): ?>

Change it to this:

<?php foreach (range(1, (int) min($uploadsRemaining, 1)) as $count): ?>

That's it!
Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Damon] No of upload fields

By avrom - May 12, 2009

Damon, Perfecto ! Thanks...

Avrom