Upload - Set Category issue

Phoca Download - download manager
Tectic
Phoca Member
Phoca Member
Posts: 13
Joined: 09 Jun 2009, 17:38

Upload - Set Category issue

Post by Tectic »

I have set-up a site to enable files up to 40Mb to be uploaded by Registered Users and these can be downloaded only by an Administrator - it's a ftp site for a printing company.

However, if a user does not select the Category before attempting to upload a file the upload fails. The only place to set the category is in the 'box' that relates to and is titled "Uploaded Files" (I modified default_files.php to reverse the 'box display order'), I could modify the code to place it in the "Upload Files" box but I'd much rather modify the code so that the category is automatically set (in this case there is only one Section and Category defined). :?:

A screen shot of the site page after an upload has failed: Image.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upload - Set Category issue

Post by Jan »

Hi, the javascript check is planned, it means, the not selected category will cause javascript warning before upload.

Jan
If you find Phoca extensions useful, please support the project
Tectic
Phoca Member
Phoca Member
Posts: 13
Joined: 09 Jun 2009, 17:38

Re: Upload - Set Category issue

Post by Tectic »

Thanks Jan,
Certainly, if the drop down is not set the warning displays - as shown in my image.
I think the 'issue' is that the "Section" and "Category" drop downs are in the 'Uploaded Files' are not in the 'Upload Files' area where everything else to do with uploading files is placed. If they cannot be set 'by default' in the com_phocadownloads administrator area (which I suppose is what I was asking - rather badly!), can they be moved so an 'upload user' only has to deal with entries in one area?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Upload - Set Category issue

Post by Jan »

Hi, they cannot be set as default - there are form in forms (the category and imag upload, se the GET cannot differentiate between parameters). But there must be this select because user can have different subcategories so he/she needs to have an option where the image will be loaded :idea:

I think, you can somehow to fix it and only set some category as fixed into the select box, but didn't try it yet.
:(

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