939 Posts in 271 Topics by 291 members
Forum Module
SilverStripe Forums » Forum Module » Post Attachments
Discuss the Forum Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1317 Views |
-
Post Attachments

17 September 2009 at 1:50pm
I must be blind because I can see bits of code for post attachments, but can't find a way to post them.
Can someone please guide me on how to post attachments? Is there some secret samurai way?
On a side note, it seems this forum uses that module and there is definitely an Attach File option on this post.
Why does mine not have it?
-
Re: Post Attachments

17 September 2009 at 1:54pm
I fail, forum has permission called Can users attach files? ;\
-
Re: Post Attachments

6 October 2011 at 2:02pm Last edited: 6 October 2011 2:22pm
Apologies for opening an old thread but I was having similar problem.
I found it in the admin area under the topic > Access > Can users attach files?
When changing this however it raised an error
[User Notice] Upload::setAllowedMaxFileSize() is deprecated. Please use Upload_Validator::setAllowedMaxFileSize() instead
To fix change this line in Forum.php (appears twice)
$fileUploadField->setAllowedMaxFileSize(1000000);
to
$f_validator = new Upload_Validator();
$f_validator->setAllowedExtensions(array('pdf','png','jpg')); // set your extensions here
$f_validator->setAllowedMaxFileSize( array('*' => 1000000) );
$fileUploadField->setValidator($f_validator); -
Re: Post Attachments

10 August 2012 at 12:09am
Thanks heaps, I've been looking for that for the past few days!
You'd think it'd be under the Settings tab...
| 1317 Views | ||
|
Page:
1
|
Go to Top |


