Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#215 Modifying polls

v1.5.1_RC1+
closed-wont-fix
5
2004-01-18
2003-11-17
Anonymous
No

When a message is posted with an attachment for the
first time, the db table storing filesize and filename is
populated correctly. However, when you wish to modify
the post and you wish to delete the existing attachment
and post new attachment, the file is uploaded to the
server (the file appears in the attachments folder)
however the dbtable does not get updated with the new
details. This is because the attachment_size variable is
never populated and the if...elseif statement is never
true and therefore never executed (in
ModifyMessage.php).

I have solved the problem by insert ing:

else
$attachment_size = $HTTP_POST_FILES['attachment']
['size'];

after the line 310 in the ModifyMessage.php file.

Regards,
Igor

i_stjepanovic@optusnet.com.au

Discussion

  • Logged In: YES
    user_id=633762

    Thank you, but YaBB SE is no longer being actively developed.

    Furthermore, this problem is nonexistant in SMF.

    Thank you,
    -[Unknown]

     
    • status: open --> closed-wont-fix