Attachments Upload Errors

All files users attach to topics or replies are stored in the media library. But, before that, they are all checked to determine if they are allowed (size, format). During upload, various problems can occur to break the upload or corrupt the files. All these problems and errors will result in the file not being uploaded, but instead, an error entry is generated and saved and later displayed with the topic or reply or in the Error Log panel.

Upload Errors

Depending on limitations set for the attachments upload, server configuration and WordPress upload handling, attachments upload can fail. There are few types of errors you can expect:

  • File is not valid: it can be oversized, with extension that is not allowed, or over the upload files limit. Most of such issues are resolved before the upload is done, because plugin checks file size and type when the file is attached and before submitted.
  • Server or WordPress issues: there are various issues that can happen on server level to cause upload problems. You can check more about that here.

Error Log Configuration

Errors logging can be configured via the Features => Attachments panel.

There you have an options group called Errors Logging with several options. The first option is used to activate the logging process. If this is disabled, no errors will be logged! After that, you have options to control who can see the errors. This is related to displaying errors in the topic or replying to inform about the errors on the front end. Normal users or visitors can’t see these logs; they are reserved for administrators, moderators, and topic/reply authors, and in the settings group, you can enable or disable this.

Errors Log

All errors can be seen on the Errors Log panel in the Toolbox admin menu. This panel grid looks similar to the Attachments panel but shows errors for every upload problem. This can help you to debug problems with the upload process.

Errors Log

Errors in Metadata

All errors are saved as metadata for topics and replies where the error happened during upload. And, if you edit topic or reply on the admin side, there is a Attachments metabox where you have Errors tab listing all upload errors.

0
0
41
Rate this article

You are not allowed to rate this post.

Leave a Comment