Fileupload Component - After Upload Actions

  • 3
  • Idea
  • Updated 2 years ago
  • Implemented
Hi

I need to perform some actions after a file was successfully uploaded. Sadly there are no "Multiple Actions" nor "Run Snippet" options available.
Is there an event I can subscribe to or do I have to make a different approach?

Cheers
Photo of David Giger

David Giger

  • 1,758 Points 1k badge 2x thumb

Posted 3 years ago

  • 3
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
following upload, the model that the file uploads to automatically requeries. You can use a model action that is triggered on requery to execute after upload actions
Photo of David Giger

David Giger

  • 1,758 Points 1k badge 2x thumb
The file is stored in "Attachments" and that model is not included on the page (which I want to leave it that way if possible).
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
I was unable to figure out a way around this other than using your own uploader. There are Skuid community posts on multiple file uploading and a few other variations that reference third party upload components that you can customize for your needs.
Photo of David Giger

David Giger

  • 1,758 Points 1k badge 2x thumb
Is there really no event that get's published after the file was uploaded successfully?
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Not that I know of. I had a back and forth in a community post about this based on needing to do the same thing you are trying to do. It basically boiled down to that there are plans to enhance the uploader to include a variety of additional options, but right now, as far as I know, there aren't an options other than the requery after upload which may not apply to attachment uploads. I use chatter feed uploads.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Have you considered using SF Setup declarative options?

You can use Workflow, Process Builder or Flow on the File object when the File Upload component is set to "In Field on Record".

You can use Flow on the Attachment object when the File Upload component is set to "in Attachment to Record".

Worst case, you can Apex to do pretty much anything.
Photo of David Giger

David Giger

  • 1,758 Points 1k badge 2x thumb
That would be a possibility too, but I would still rather prefer Skuid to perform the actions (keeping it as simple as possible ;) ), especially if such a functionality would exist.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
Yes. Sometimes though Skuid isn't the place to do this. Especially if this series of actions is to be performed in more than one page. Declarative AND server side is typically a better way to go.
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,240 Points 5k badge 2x thumb
David~

Raymond is right, this functionality does not exist in Skuid at the moment. I will change this to an idea under consideration and bring it to the team to consider for a future release.

Vote it up if also want to have this functionality!

Thanks!
Karen 
Photo of David Giger

David Giger

  • 1,758 Points 1k badge 2x thumb
Karen,

Yes please that would be wonderful :)
Photo of Jaime

Jaime

  • 1,220 Points 1k badge 2x thumb
has this been implemented yet?
Photo of Bill McCullough

Bill McCullough, Champion

  • 12,436 Points 10k badge 2x thumb
Jaime,

I see it in Brooklyn (9.5.4).  Check the File Upload component for the On Upload Actions tab.

Thanks,

Bill
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
That's correct guys, this has been implemented as of our Brooklyn release.