Page 1 of 1

Attachments dissapear on editing

Posted: Wed Sep 04, 2019 7:49 pm
by Endru1241
When I edit posts with many files attached, e.g. posted few jsons.
When I tried to edit this post to remove jsons outdated by the ones in later posts, I am left with only one attachment in attachments tab.
Could this be something like this (quoted below from https://www.phpbb.com/community/viewtop ... &t=2453611) or is this my browser problem?
Issues involving attachments not showing, or not all showing, when posts with multiple attachments are posted or previewed, as discussed in this topic

Fix: Open phpBB/includes/functions_posting.php & find:

Code: Select all

foreach ($attachment_data as $count => $attach_row)
On a separate line BEFORE, ADD:

Code: Select all

$attachrow_template_vars = [];
Find and DELETE:

Code: Select all

$attachrow_template_vars = array();

Re: Attachments dissapear on editing

Posted: Wed Sep 04, 2019 7:51 pm
by Stratego (dev)
idk, it can be a phpBB bug or something.

i also faced this if i post files with same names (they somehow owerwrite each other)