removing multiple files from variable only works backwards

  • asad_90597-1307794880445022298

    asad

    4 months 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_90597-1308016969965899786

    asad

    4 months ago

    Any help
  • asad_90597-1308137778986483722

    asad

    4 months ago

    @Lucas G
  • andreasmoller-1308138425395970190

    Andreas Møller

    4 months ago

    A you show the workflow and logic?
  • asad_90597-1308144005858463834

    asad

    4 months ago

    not sure what you mean but if you will look at the link i will appreciate it
  • andreasmoller-1308145993677672572

    Andreas Møller

    4 months 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
  • lucasg-1308153197000528003

    Lucas G

    4 months 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_90597-1308163757188448276

    asad

    4 months ago

    thanks @Lucas G it worked.i've used that formula
  • asad_90597-1308181398326349934

    asad

    4 months ago

    1308181398129213522-image.png
  • lucasg-1308181641046261802

    Lucas G

    4 months 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.