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 need to upload PSD file with cypress. Our drangNdrop input is customized (written from scratch). You can see how it looks like in our React app:
There is openFilePrompt function which is triggering via onClick listener on the dragNdrop area, it looks like this in the code:
Since it is creating input in the DOM inside the body tag, so I am trying to insert my PSD file directly to that input without triggering onDrop function which is called just after the mention openFilePrompt, I am using cypress-upload-file plugin in this example, my code looks like this:
I am converting it to the Blob and then attaching it directly to fresh input which has been created by clicking on dragNdrop tag.
The error I am getting:
The error is the same if I am passing this file without converting it to the Blob.
I also tried to create a custom upload function where I was triggering onDrop function, in the code:
Error:
I looked up at this issue abramenal/cypress-file-upload#70 and added 'base64' for fixture as well, and now I do not get any error, however my payload (which is PSD) is empty:
My code:
The text was updated successfully, but these errors were encountered:
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.
I need to upload PSD file with cypress. Our drangNdrop input is customized (written from scratch). You can see how it looks like in our React app:









There is openFilePrompt function which is triggering via onClick listener on the dragNdrop area, it looks like this in the code:
Since it is creating input in the DOM inside the
body
tag, so I am trying to insert my PSD file directly to that input without triggering onDrop function which is called just after the mention openFilePrompt, I am usingcypress-upload-file
plugin in this example, my code looks like this:I am converting it to the Blob and then attaching it directly to fresh input which has been created by clicking on dragNdrop tag.
The error I am getting:
The error is the same if I am passing this file without converting it to the Blob.
I also tried to create a custom upload function where I was triggering onDrop function, in the code:
Error:
I looked up at this issue abramenal/cypress-file-upload#70 and added 'base64' for fixture as well, and now I do not get any error, however my payload (which is PSD) is empty:
My code:
The text was updated successfully, but these errors were encountered: