question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File doesn't remove from submit data

See original GitHub issue

Describe the bug File doesn’t remove from data in the submitHandler(data) after click on remove icon.

To Reproduce Steps to reproduce the behavior:

  1. Go to this codepen and open debug view (In edit mode, the file field does not work for me)
  2. Add the file to the avatar field
  3. Click on Save profile. Now the uploaded file can be seen in the data object
  4. Click on remove icon. File removed from field, but:
  5. Click on Save profile. The file is still present in the data object

Reproduction CodePen: https://codepen.io/maksabuzyarov/pen/vYGppEa

Expected behavior I think that the file description should not be present in the data object after deleting it

Screenshots

  1. File added, clicked on Save profile. image

  2. File removed. clicked on Save profile. image

Device information:

  • Device: notebook MSI
  • OS: Windows 10
  • Browser: Google Chrome 85.0.4183.83

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
justin-schroedercommented, Oct 7, 2020

Damn, a regression eh? Thats why having tests on these things would be really nice…ok I’ll reopen this. in the meantime lock 2.4.4 in

1reaction
justin-schroedercommented, Oct 7, 2020

@acemir I think this has to do with the updates in 2.4.5 in your PR. I imagine its an easy fix, any chance you want to tackle it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I remove a file from the FileList - Stack Overflow
In my case I was uploading the files via XMLHttp request, so I was able to post the FileList cloned data through formdata...
Read more >
How to Force Delete A File on Windows 11/10/8/7? [Can't ...
Fast fix - you can use Shift + Delete to delete files or folders permanently. If you still can't delete files in Windows...
Read more >
File input doesn't correctly work when removing file
To remove the file, I created a method removeFile(). First, I've tried to remove the file from the file list doing this: this.files.splice(index,...
Read more >
Deleting Files Doesn't Destroy Your Data - ERI
For others, you might right-click and choose “Delete File” from the menu. With Windows, you'll see a trash can on your main screen...
Read more >
Remove a file from commit history doesn't remove the file and ...
After we have committed an unexpected file into repository, and merged it into the master branch by a pull request, we can remove...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found