You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried uploading an image from Openverse and it inserted the same image like dozens of times. There must be some infinite loop somewhere. Interestingly, it was only uploaded once though.
Also, the image is named undefined.jpeg, so there must be something wrong going on there too.
The text was updated successfully, but these errors were encountered:
In other words, every time onFileChange is called, a new block is inserted (but with the same client ID*)
In Gutenberg right now the callback is only fired once. But in media experiments with client-side thumbnail generation, it can be fired numerous times.
Proposed fix: adding the Openverse image should only insert it once, and subsequent onFileChange calls would just update the existing block. Maybe the insertion needs to be moved out of onFileChange?
This is something that needs to be figured out as part of the migration to Gutenberg (see also #561)
I just tried uploading an image from Openverse and it inserted the same image like dozens of times. There must be some infinite loop somewhere. Interestingly, it was only uploaded once though.
Also, the image is named
undefined.jpeg
, so there must be something wrong going on there too.The text was updated successfully, but these errors were encountered: