Excuse if this question already rose, I could not find the answer... I do "custom file attachment to category field" (attach), the form for addition is created in Category Templates automatically, I pass on main-> to add a category-> we choose a file-> to add-> ok, the category is added, the file on a server is not present (not uploaded), too most I make with "custom file attachment to link field" - all works, the file is added on a server... That I need to make, that has earned a variant with categories (comments and members), as it is told here: scripts.webmastersite.net/w.../wsnmanual/link.php?id=161
Ah. I was about to say I couldn't reproduce it, but then I checked the multilingual template set and I see that the change made to the english templates a while back (when the same question came up) didn't get applied to multilingual. For multilingual, the template for categories doesn't specify in the form tag to accept files. In your 'Suggest Category' template (suggestcat.tpl) change that opening tag to <form enctype="multipart/form-data" action="suggest.php?action=addcat&filled=1" method="post"> and in the 'Edit Category' template also add the enctype="multipart/form-data" to make it <form enctype="multipart/form-data" action="edit.php?action=category&filled=1&id={CATID}" method="post">
Comments on custom file attachment to category
Usergroup: Customer
Joined: Apr 15, 2005
Location: Russia
Total Topics: 3
Total Comments: 10
Excuse if this question already rose, I could not find the answer...
I do "custom file attachment to category field" (attach), the form for addition is created in Category Templates automatically, I pass on main-> to add a category-> we choose a file-> to add-> ok, the category is added, the file on a server is not present (not uploaded), too most I make with "custom file attachment to link field" - all works, the file is added on a server...
That I need to make, that has earned a variant with categories (comments and members), as it is told here: scripts.webmastersite.net/w.../wsnmanual/link.php?id=161
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Ah. I was about to say I couldn't reproduce it, but then I checked the multilingual template set and I see that the change made to the english templates a while back (when the same question came up) didn't get applied to multilingual. For multilingual, the template for categories doesn't specify in the form tag to accept files. In your 'Suggest Category' template (suggestcat.tpl) change that opening tag to <form enctype="multipart/form-data" action="suggest.php?action=addcat&filled=1" method="post"> and in the 'Edit Category' template also add the enctype="multipart/form-data" to make it <form enctype="multipart/form-data" action="edit.php?action=category&filled=1&id={CATID}" method="post">
Usergroup: Customer
Joined: Apr 15, 2005
Location: Russia
Total Topics: 3
Total Comments: 10
Many thanks, now all works