MyBB Community Forums

Full Version: Attachment uploading issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
good morning

i face such a rare issue related to attachments

we cant upload attachments to a thread  when we add a file to the thread and post the thread its posted without any error messges but there is no any attachments and i check the upload file in host server there isnt any new file

mybb version is 1.9.22
^ have you checked in /uploads/202006 folder on server ? does the folder exist ?

how about avatars ? do they upload & appear at posts ?
(2020-06-07, 10:41 AM).m. Wrote: [ -> ]^ have you checked in /uploads/202006 folder on server ? does the folder exist ?

how about avatars ? do they upload & appear at posts ?

this folder it doesn't exist

and about avatars they upload and appear without any issue
browse to tools & maintenance section of forum admin panel & look at bottom of page
does it report incorrect CHMOD for uploads folder ?

though not sure if I will be able to check in a couple of hours
you may PM me temporary access to your forum admin panel
& files (FTP account) to check the issue.
there is no any error and it says All of the required files and directories have the proper CHMOD settings.

i have sent you a pm
^ okay. if you can trust me :
though not sure if I will be able to check in a couple of hours
you may PM me temporary access to your forum admin panel
& files (FTP account) to check the issue.
sure i have sent it
attachments should work now. added missing code in a couple of templates.
(2020-06-07, 02:17 PM).m. Wrote: [ -> ]attachments should work now. added missing code in a couple of templates.
thanks for your help
yes as i see your thread it does but with some other user it doesnt i did some posts please look at it
(2020-06-07, 10:06 AM)mahamad bilal Wrote: [ -> ]good morning

i face such a rare issue related to attachments

we cant upload attachments to a thread  when we add a file to the thread and post the thread its posted without any error messges but there is no any attachments and i check the upload file in host server there isnt any new file

mybb version is 1.9.22

There are several bugs currently affecting attachments. You might be experiencing one or more of them.

One is raised in GitHub issue #3618: Attachments not working properly in latest version. Basically, MyBB silently ignores some PHP upload errors. In particular, it ignores the PHP error that is raised when the size of the uploaded file is larger than the PHP upload_max_filesize ini file setting. The fix for this bug (PR #3986) has not yet been merged.

If this is the problem, then you might need to either increase that PHP setting, or decrease the "Maximum Size" of each file type in the ACP under "Attachment Types" such that it is less than that PHP setting, or simply ask your user(s) to upload smaller files.

Several other bugs related to attachments are fixed in PR #3926 (also not yet merged): Fixes several bugs with attachments at once. You and/or your users might be experiencing the first bug listed there:

Quote:When the "Post Thread" or "Post Reply" button was clicked after an attachment had been selected with the "Choose Files" button, the attachment was not saved.

The workaround for this is to ensure that before clicking "Post [Thread/Reply]", "Preview Post", or "Save as Draft", you click "Add Attachment" to have your attached file correctly uploaded.

Hopefully, these PRs will be merged in time for the next MyBB release. In the meantime, this post perhaps gives you some idea of how to work around them.
Pages: 1 2