file upload - allow multiple attachments at once

  • 15
  • Idea
  • Updated 2 years ago
  • Implemented
I'm shocked that this isn't an idea yet!

I'd love to be able to select 10 or 20 items in a folder and drag them onto the file upload component to attach them to a record. As it is, we can only upload one at a time.
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb

Posted 3 years ago

  • 15
Photo of Ryan Denis

Ryan Denis

  • 542 Points 500 badge 2x thumb
Hey Matt did you ever find a solution to this? This would be great. There are appechange apps that can do it:

https://appexchange.salesforce.com/listingDetail?listingId=a0N30000008ZVcdEAG
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
I haven't tried to integrate with any of the other apps. I'm just waiting for skuid to upgrade the file component. Seven votes is pretty high for this forum, so I'd think it wouldn't be too far down the roadmap.

Right, Skuid? ;)
(Edited)
Photo of Gregg Baxter

Gregg Baxter, Official Rep

  • 3,080 Points 3k badge 2x thumb
Hi Matt

Thimo from GBC has written a custom component for this which allows the user to select multiple files.

@Thimo GBC can you share this here please?
Photo of Thimo

Thimo

  • 1,280 Points 1k badge 2x thumb
Hi Matt

I wrote a custom component, that allows you to upload multiple files. Aswell as some other nice things like After Upload Actions and type restrictions.

You can download it here: http://bit.ly/1MP2ozX

But please remember, It is still kind of in a beta phase. Use it at your own risk:

Quick Tutorial:
1. Install the component as you would install the progress indicator (http://help.skuidify.com/m/11720/l/451511-progress-indicator-component)
2. To use it, you need to have 2 extra models in your page. One referencing to skuid_image__c and one to Attachment
3. The rest should be self explaining :)
(Edited)
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Thimo,

What would it take to change the upload type to content?

Attachments have a 50mb limit and content has a 2gb limit.
Photo of Thimo

Thimo

  • 1,280 Points 1k badge 2x thumb
You mean changing it to use the Content instead of the Attachment?

I could try that yes. :)
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Yes, that's exactly what I mean :)! Can I help in any way?
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Thanks for sharing Thimo! 
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
Thimo,

Nice work!

If I only want to use the component to upload attachments (not images), how would I go about that? A basic test doesn't seem to be working for me.
Photo of Thimo

Thimo

  • 1,280 Points 1k badge 2x thumb
@Matt

For uploading only attachments, create 3 Models. 
One where your attachments should be stored with Fields for every single file (as you would need with the standard file upload), one to skuid_image__c and one to Attachments. IMPORTANT: on these "helper-models" remove the load on page load and do NOT create a new row if none.

Drag in the Component, and select your models and the number of attachments you want to upload (max. 5 atm) and link all your fields there.
In the upload later you can select in the filepicker as many files as you like, but only as many you chose as limit or less will be uploaded. Later, if you upload again, it fills the remaining attachment fields and does not override the old attachments. (Our use case was an image gallery, thats why)

If you want all files possible simply don't check the box "only images".

To download, delete or view your uploaded files you would still need the File Upload from skuid.
(Edited)
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Will this idea be delivered in the Brooklyn release?
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
doesn't look like it from the release notes
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Are the release notes really exhaustive? 
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Delivered baby! W00t!
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Hi guys,

I'm happy to say that Shmuel is right, you can now upload multiple attachments as of Brooklyn Update 1, available from the Skuid Releases Page.

As a reminder, Salesforce does not allow reverting back to prior versions of managed packages. Skuid always recommends installing new versions in a non-business critical sandbox environment to test all mission critical functionality before installing into a production environment. We also recommend that you update out of date themes when you upgrade.
Photo of Alexey Bezugliy

Alexey Bezugliy

  • 114 Points 100 badge 2x thumb
Hi, were "after upload" actions added also? if so, how can this be done?
Photo of Mark DeSimone

Mark DeSimone, Official Rep

  • 11,050 Points 10k badge 2x thumb
Hi Alexey, you may be able to achieve this by adding a model action to the uploaded file's model, that would be triggered whenever there is a change to something like the filename field. 
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Alexey,

After upload actions were added - if you look at the properties of the File Upload component, one of its tabs is "On-Upload Actions." You can add actions on upload success and upload failure.
Photo of Alexey Bezugliy

Alexey Bezugliy

  • 114 Points 100 badge 2x thumb
Thanks, but how can I take only those files, that were just uploaded, to modify. Let's say I want to manually add description to each file I've just uploaded, this is supported by model actions or upload success action?
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
Alexey, 

There are probably a few different ways to achieve what you want. If you're uploading files in attachment to record, I have one possible way for you: You could add an Attachments model to your page and set a condition on it so that the parent id is always the Id from the model you're attaching records to. Then, in your On Upload Success Actions, query the Attachments model. If you show the attachments model in a table on your page, you can watch as the files you upload get added to it (and if you set the table's default mode to edit you could easily edit file descriptions as they show up).