If Multiple Upload is enabled, don't show single file upload

Kot
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 22 Jan 2013, 10:22

If Multiple Upload is enabled, don't show single file upload

Post by Kot »

If Multiple Upload is enabled, don't show single file upload form to user.

Why I need it?
  1. It will decrease count of tabs. Really, tab "single file upload" is unnecessary if you enabled Multiple Uploader.
  2. Single file upload doesn't perform file resize in comparison with Multiple Uploader.


Not sure if it really useful for all, maybe it is necessary to do it configurable, too. But that is for component owner decision. I use it as is. :)
Link to diffs: http://scooterclub.by/kot/diffs/phoca_f ... _only.diff

In addition, the following modification also would be useful for all who will to install the changes above: Configurable jpeg quality on Multi Uploader resize
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: If Multiple Upload is enabled, don't show single file up

Post by Jan »

Hi, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
faxedick
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 07 Oct 2013, 12:57
Contact:

Re: If Multiple Upload is enabled, don't show single file up

Post by faxedick »

Hi thanks for sharing!
Found this solution very helpful and was able to implement in 3.2.6.

Thanks you!
Post Reply