SHARE
TWEET

Untitled

a guest Feb 15th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. validateImageFormat = imageFile => {
  2.     if (imageFile) {
  3.       const { mimeType } = this.props;
  4.       if (!mimeType.includes(imageFile.type)) {
  5.         return `Image mime type must be ${mimeType}`;
  6.       }
  7.     }
  8.   };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top