-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom properties - TypeError: Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'. #357
Comments
The Issue appears if you try to add a new Image and edit the Custom Properties directly.
This line takes the image object and clones it into the Custom Properties component. By using the JSON parse/stringify the Blob in the file property gets casted to a normal object. this then triggers the error. An easy fix would be to use the Lodash Clone functionality, or even better to just emit the custom properties and add them in the Gallery.vue to the corresponding images. I am sure i can quickly cook up a PR with the lodash clone fix. I do not know if the other solution has any drawbacks i do not know about. Feel free to contact me if you would like to see a PR with this Solution though @ebess |
@ebess Can you accept this? |
Hello @ebess can you accept this pull request ? |
Hello @ebess can you accept this ? It solves the problem for me |
… custom properties When custom properties were set for a newly added file, stringifying the image object would replace the file Blob with a plain object containing just the file name. This change ensures that newly added files are retained after their custom properties are modified before submission. Signed-off-by: Tobias Grasse <tg@glancr.de>
… custom properties When custom properties were set for a newly added file, stringifying the image object would replace the file Blob with a plain object containing just the file name. This change ensures that newly added files are retained after their custom properties are modified before submission. Signed-off-by: Tobias Grasse <tg@glancr.de>
…om properties (#409) When custom properties were set for a newly added file, stringifying the image object would replace the file Blob with a plain object containing just the file name. This change ensures that newly added files are retained after their custom properties are modified before submission. Signed-off-by: Tobias Grasse <tg@glancr.de>
Thank you ! |
… custom properties (ebess#409) When custom properties were set for a newly added file, stringifying the image object would replace the file Blob with a plain object containing just the file name. This change ensures that newly added files are retained after their custom properties are modified before submission. Signed-off-by: Tobias Grasse <tg@glancr.de>
Hello,
I am facing the same issue mentioned in #288 when saving resource with new image with filled custom properties. When custom properties are not filled, everything works fine. Can anyone help? Thanks
Model:
Resource:
Error:
The text was updated successfully, but these errors were encountered: