File upload duplicating attachments

  • 1
  • Problem
  • Updated 4 years ago
  • Solved
I'm using a Queue with the Item Action as multiple actions to load the detail of a record. The detail contains a file upload component. When I drag and drop a file, it will duplicate the attachment on the correct record and also add multiple attachments of the same file to the next record in the queue.

If I drag and drop to a record that is not first in the queue, it will duplicate the file on the first record in the queue. However, if I use the File upload button and manually select the file, it works perfectly fine - no duplication of files on the record or other unassociated records.

This happened in both v7.20 and the newest version of Skuid v7.24.
Photo of Chelsea Curtis

Chelsea Curtis

  • 1,300 Points 1k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,828 Points 20k badge 2x thumb
Can you describe your action sequence used when the queue is clicked?   I suspect that you end up having multiple records in context, and that the file component is attaching the files to all of them.  Make sure that only one detail record is loaded at a time in your queue.  Your action sequence might start with emptying the model before new rows are queried. 
Photo of Chelsea Curtis

Chelsea Curtis

  • 1,300 Points 1k badge 2x thumb
Hi Rob,

The item action when the queue is clicked is:
Activate and set model for ModelDetail Id = {{Id}}
Query ModelDetail - standard query

The ModelDetail has a Max # of records = 1, so I don't believe multiple records should be an issue? It's strange that the file would duplicate on the correct record only when it is dragged and dropped. What would cause this? 

Photo of Ben Hubbard

Ben Hubbard, Employee

  • 12,550 Points 10k badge 2x thumb
Hi Chelsea,

I was able to duplicate this behavior in my org. We'll get this fixed in Update 6. Thanks for reporting it.