Disable "upload single file"

Phoca Gallery - image gallery extension
bole
Phoca Member
Phoca Member
Posts: 28
Joined: 26 Mar 2009, 00:23

Disable "upload single file"

Post by bole »

Dear Jan,

I've already been using Phoca Gallery for J1.5 for years now on a site, but for our private site I started with a fresh J1.6. So at the moment I'm using PG 3.0.0RC4. Thanks for the good work!

What I'd like to do, is to disable the single file upload, so that the users can only use the JAVA-upload method (because of automatic resizing and because we always publish a bunch of photo's at the same time). I did find options to enable/disable multi-file uploads, but I just want to disable single file upload.

Is this possible? Or is it possible to implement easily?

Kind regards,

Bob
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable "upload single file"

Post by Jan »

Hi, I think there is no option, but you can disable the displaying of other methods, but depends on if you want to disable it in ucp or category view.

Jan
If you find Phoca extensions useful, please support the project
bole
Phoca Member
Phoca Member
Posts: 28
Joined: 26 Mar 2009, 00:23

Re: Disable "upload single file"

Post by bole »

Hi Jan, thanks for answering.

You say that this is currently not an option; is it possbile to make this option available? I think it should be rather easy, as this is already implemented for the other methods.

Another good point you raise is the different methods: I would like to have the oppertunity to select that uploading is only allowed via the UCP and not in the category view. Is this possible?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable "upload single file"

Post by Jan »

Hi, added into feature request list.

The problems with option is, you need to select only some from all possible options. For now there are so many options that it causes problems on some servers. Adding new options must be done really carefully. :-(

Jan
If you find Phoca extensions useful, please support the project
bole
Phoca Member
Phoca Member
Posts: 28
Joined: 26 Mar 2009, 00:23

Re: Disable "upload single file"

Post by bole »

Thanks.

Could you giv me the filenames where I have to have a look if I'd like to change this myself? So which file is responsible for the uploadform in the category view, and which file for the normal UCP uploads?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Disable "upload single file"

Post by Jan »

Hi, see controllers in frontend

components/com_phocagallery/controllers/ category.php (user.php) the same with views

Jan
If you find Phoca extensions useful, please support the project
Post Reply