Page 1 of 1

Upload - Set Category issue

Posted: 14 Jan 2011, 01:15
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.

Re: Upload - Set Category issue

Posted: 16 Jan 2011, 15:19
by Jan
Hi, the javascript check is planned, it means, the not selected category will cause javascript warning before upload.

Jan

Re: Upload - Set Category issue

Posted: 16 Jan 2011, 16:02
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?

Re: Upload - Set Category issue

Posted: 16 Jan 2011, 18:52
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