Filepond: Delete confirmation & Prevent upload

Created on 13 Sep 2018  Â·  6Comments  Â·  Source: pqina/filepond

Hi!

I'm a Portuguese developer that's currently working with your component in a Vue enviornment.
Before exposing my feature request, I would just like to congratulate you guys on the tool - you did a really great job in terms of design, documentation, user-xp and combining all of them!

As for feature requests, I have 2 - both regarding the server-connected filepond:

  1. I would like to have the capacity to have the user confirm that he want to delete a file before sending that request to the server. Is this currently possible, without making the upload manually myself (by disconnecting it from the serve-automation you guys have)? Like an instantDelete property (similar to instantUpload)?
  2. I have a filepond inside an edition form, in which I need to add the already previously uploaded files, without re-uploading them. Is there a way to add a file to the filepond but preventing it from uploading?

Keep up the great work!

| Environment | Version
|------------- | -----------
| OS | MacOS
| Device | MacbookPro (2013)
| Browser | Chrome

All 6 comments

Hi!

Thanks so much for the positive feedback!

  1. If I understand correctly instantUpload is set to true, so files are uploaded on drop. The moment a user taps the remove button there should be a way to intercept this action and show a popup?

  2. You can add mock files, see setting initial files

Thanks for the help on the 2nd question.

About the first, yes, that's it.
I don't know if it makes sense for you guys to add the popup confirmation
itself to the component. If not, maybe just a "beforeDelete" function,
through which we can prevent or trigger the deletion itself?

Rik notifications@github.com escreveu no dia sexta, 14/09/2018 à(s) 07:19:

Hi!

Thanks so much for the positive feedback!

1.

If I understand correctly instantUpload is set to true, so files are
uploaded on drop. The moment a user taps the remove button there should be
a way to intercept this action and show a popup?
2.

You can add mock files, see setting initial files
https://pqina.nl/filepond/docs/patterns/api/filepond-object/#setting-initial-files

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pqina/filepond/issues/119#issuecomment-421243313, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASbtdu6TePNF2ZvDw0T2rFREcwg_4kuZks5ua0pWgaJpZM4Wn2l1
.

--
Cumprimentos,
Filipe Lopes.

I'll probably add an onbeforedelete callback or something, will update the issue when it's done!

Tks!

On Mon, 17 Sep 2018, 15:08 Rik, notifications@github.com wrote:

I'll probably add an onbeforedelete callback or something, will update
the issue when it's done!

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pqina/filepond/issues/119#issuecomment-422031645, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASbtdvdFJLVLDnLDbL4_psaGkGaLhn1Wks5ub6z6gaJpZM4Wn2l1
.

Just published version 2.3.0 which adds the beforeRemoveFile hook.

Also updated docs:
https://pqina.nl/filepond/docs/patterns/api/filepond-instance/

Thank you so much! :)

Rik notifications@github.com escreveu no dia segunda, 24/09/2018 à(s)
18:32:

Just published version 2.3.0 which adds the beforeRemoveFile hook.

Also updated docs:
https://pqina.nl/filepond/docs/patterns/api/filepond-instance/

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pqina/filepond/issues/119#issuecomment-424058824, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASbtdnUTrquOhn_0YIHy7lwH0B1yZL8nks5ueRcfgaJpZM4Wn2l1
.

--
Cumprimentos,
Filipe Lopes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

irfancnk picture irfancnk  Â·  7Comments

enisdenjo picture enisdenjo  Â·  6Comments

lvidrashchuk picture lvidrashchuk  Â·  3Comments

madrussa picture madrussa  Â·  6Comments

vanko0309 picture vanko0309  Â·  4Comments