xwp / unsplash-wp

GNU General Public License v2.0
9 stars 3 forks source link

An error message is presented to the user when the import action fails due to file size upload limitations #145

Open bmattb opened 4 years ago

bmattb commented 4 years ago

Feature description

As a user I expect that if the plugin is unable to auto-import image assets into the site's WordPress Media Library due to file size storage limitations (ie: exceeding the allowable file size) then the following would happen:

  1. The insertion of the selected image into the post and/or the sites' Media Library would be prevented
  2. Content post/page and/or Media Library would not be updated with the selected image (as we don't have a local fallback image)
  3. User would be presented with an error message stating " exceeds the maximum upload size for this site" (this is a core message) max-upload-size

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation brief

QA testing instructions

Demo

Changelog entry