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