Guest User

Untitled

a guest
Feb 15th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  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. };
Add Comment
Please, Sign In to add comment