Skip to content

Conversation

nkutinha
Copy link
Contributor

@nkutinha nkutinha commented May 11, 2021

Description
While selecting a new profile photo, canceling the file selection window results in errors being displayed in the console saying,

Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.

Video demonstration

For some reason, the @change="updatePhotoPreview" method is being triggered although no changes were made to the input. Possibly a Vue related issue since this doesn't happen in the Livewire stack?

Probably worth noting that I've run into this issue on Windows and specifically Chromium based browsers.

Steps to reproduce

  • Enable profile photos feature.
  • Visit the user profile page.
  • Select a new photo.
  • Select a new photo again, only this time leave your selection empty and click cancel.

@taylorotwell taylorotwell merged commit 86b5d32 into laravel:2.x May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants