PricingDocsAcademy
Bluesky ...
Wed, Dec 11, 9:38 PM

removing multiple files from variable only works backwards

  • /attachments/1307794880445022298/1307794882848489605/20241117-1942-36.9514805.mp4

    asad

    24 days ago

    when i removing a file from a variable that is binded to file input which is multiple, i can only remove the files starting from the last ones. if i remove the first one , then i cant remove others
  • asad

    23 days ago

    Any help
  • asad

    23 days ago

    @Lucas G
  • Andreas Møller

    23 days ago

    A you show the workflow and logic?
  • asad

    23 days ago

    not sure what you mean but if you will look at the link i will appreciate it
  • Andreas Møller

    23 days ago

    I am on my phone at the moment so I can’t check it.
  • If you can share a screenshot of the workflow that removes files when clicking delete
  • Lucas G

    23 days ago

    This was answered in your other thread
  • A file input element doesn't return an array, it is a fileList object which 'array-like'
  • To work with it like an array, convert it. For example using Entries
  • Once you do that, then you'll be able to filter/delete items, etc.
  • asad

    23 days ago

    thanks @Lucas G it worked.i've used that formula
  • /attachments/1307794880445022298/1308181398129213522/image.png

    asad

    23 days ago

    image.png
  • Lucas G

    23 days ago

    Shouldn't need to use From Entries at the end unless want it to be an object
    👍1
  • I've also now updated the supabase upload package to allow for single item deletes
    👍1

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.