Skip to main content
Topic: maximum number of attachments (Read 1942 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

maximum number of attachments

QuoteAllowed file types: doc, gif, jpg, mpg, pdf, png, txt, zip, gz, php, css, psd, js, xml, svg
Restrictions: 10 per post, 0 remaining
You have reached the maximum number of attachments allowed per post.

While limit is probably ok even for addon's author, I wish we can be allowed to remove some of them if we want to add a new version. Otherwise, we can't no longer put our addon as a post as there is no option to remove as well when we already reached 10 files.

Re: maximum number of attachments

Reply #1

Why is that in site feedback when it is clearly a bug? ;)
Bugs creator.
Features destroyer.
Template killer.

Re: maximum number of attachments

Reply #2

10

Re: maximum number of attachments

Reply #3

1

Re: maximum number of attachments

Reply #4

My connection is saturated for other stuff I'm doing, as soon as I have some bandwidth available I'll fix it here and push a fix.
Bugs creator.
Features destroyer.
Template killer.

Re: maximum number of attachments

Reply #5

Now here should work fine.
The "fix" I applied is just in Post.template.php:
Code: [Select]
if ($context['attachments']['num_allowed'] > 0 || !empty($context['dont_show_them']))
to:
Code: [Select]
if (empty($context['dont_show_them']))
I also inverted the !empty, because if I'm not wrong this was actually wrong.
Bugs creator.
Features destroyer.
Template killer.

Re: maximum number of attachments

Reply #6

This happening in this site not mine. ;)

Re: maximum number of attachments

Reply #7

Was that broken in 1.0 as well?

ETA: apparently not.
Bugs creator.
Features destroyer.
Template killer.