Filepond: How to handle Delete action correctly?

Created on 15 Feb 2019  路  2Comments  路  Source: pqina/filepond

In my experience with filePond when I try to delete a File:
if origin == "input"(1) it fires a DELETE request automatically to server.url but it doesn't include headers (specified in process.headers)
if origin == "local"(3) it doesn't fire any request and you have to do it by yourself manually

question

All 2 comments

  1. You have to add the headers to the server.revert end-point config.

  2. If you want to allow your users to remove local server files you can implement the server.remove end-point.

Perfect. Now I'm able to delete files in the correct way. Thank you.

Was this page helpful?
0 / 5 - 0 ratings