Comments (19)
@snuuve @rayax86 I just published version 1.4.0
which now has a allowRevert
setting which defaults to true
, set it to false
to disable the undo feature.
from filepond.
I changed revert
to null
and updated the tap label. This works for my use case.
server: {
revert: null,
},
labelTapToUndo: 'tap to close',
Between, I don't understand who looks for the file delete feature in the upload component? Still, thank you for the plugin.
from filepond.
What do you mean by Undo feature.
from filepond.
from filepond.
It's currently not possible to disable this feature using configuration options (only the revert action that removes the temp file from the server can be disabled). Why do you want to disable it? What is the use case?
The only way currently to remove it is to hide it with CSS.
from filepond.
Because we don't want to let users delete files from this component
from filepond.
Existing files? I assume a user can remove files they themselves added?
from filepond.
Yes, but not from this component :)
from filepond.
Okay, thanks for clarifying! Final question, if you don't mind, how are you using FilePond? It helps to know the use case to determine how to best integrate this feature.
from filepond.
Please, this is very important. There are many many cases you just want to avoid this, for example whenever a file is uploaded, it is processed and takes effect immediately. It would be meaningless to allow the user to revoke this file.
from filepond.
@rayax86 That would mean there's no way for the user to alter the interface state? The file is uploaded and stays green? Is that correct?
from filepond.
@rikschennink That's the idea. Just need to show a tick in the button and don't register any onclick
handlers on it.
from filepond.
@rayax86 The Just in your sentence is where the problem is. It's never just doing something. 😊
If I leave the button, it indicates the user can click it, but it won't do anything ( as it does not trigger any events ). The subtext shows to "tap to undo" but as there's no button there's nothing to tap. Removing the subtext makes the design look unbalanced, etc.
I've set up the situation on my dev machine but it's weird to upload a file and not be able to then remove it or revert your decision. It's like if this text box I'm typing this comment in would not allow me to use my backspace button.
from filepond.
@rikschennink Thanks for the update 👍
By "leaving the button" I actually mean "show something that looks the same as the button but don't allow the user to click it". Sorry I didn't make it clear.
As for your statement "It's like if this text box I'm typing this comment in would not allow me to use my backspace button", please consider cases similar to Google Instant: whenever you type in something, it triggers a change of state in the application. It might not be your case but is indeed my case.
All in all thanks for the update, this is such an awesome component. Keep up the great work!
from filepond.
@rayax86 No problem!
I'm still struggling to understand the use case :)
from filepond.
i would like to be able to change the text from tap to undo to tap to continue or something
from filepond.
@LordRampantHump you can do so with the labelTapToUndo
property
https://pqina.nl/filepond/docs/patterns/api/filepond-instance/#labels
from filepond.
Please provide this feature.. for disabling remove/undo button.. sometime i need that user can only see initial files but has no right to remove those files.. thanks
from filepond.
@nehadhiman6 allowRemove
and allowRevert
should cover that
from filepond.
Related Issues (20)
- [Bug] Please remove the shaking animation.
- [Feature] Customize Animation Duration
- [Bug] [react-filepond] State update in onremovefile event handler triggers file re-upload HOT 2
- [Bug] url.split is not a function when attempting to load "local" images (React 18) HOT 6
- Converting Headers key to CamelCase? HOT 1
- Bootstrap 5 image preview as gallery [Feature] HOT 2
- [Feature] How to show file limits to a custom html area with a selector HOT 5
- filepond--list-scroller overlays other elements [Bug] HOT 1
- Display a custom message on Upload complete, including data from the server response HOT 3
- I'm not able to drag an attachment from Outlook or Gmail HOT 3
- [Bug?] HOT 1
- [Bug] typings missing processfiles event HOT 1
- Upload of a large file (100s Mb) restarted each time a response received from back-end HOT 3
- Foreign character failure - unescape(encodeURIComponent(options.headers[key])); [Bug] HOT 3
- Filepond not working HOT 2
- [Bug] Method 'onupdatefiles' doesn't recognize states updates HOT 1
- [Bug] Safari click on custom idleLabel prop requires 2 clicks to trigger file upload dialog
- how to handle custom error message on maxFilesLimit HOT 2
- [Feature] is it possible to create custom file preview HOT 5
- [Bug] HEIC file upload not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filepond.