I would like to develop an app which asks the user to confirm every upload they do (both drag&drop and by the upload button) in a dialog as like this:
“Are you sure you want to upload this file into folder [foldername]?”
How can I accomplish that in my app’s JavaScript? Is there an event for file uploads that can be consumed?
Am I supposed to use the package nextcloud/event-bus? If so, which event can I subscribe to?
The targeted NextCloud version is 17 and above.
I couldn’t find any information about this in the docs, so I hope someone could kindly help me
I don’t think there is any event for this.
Also what you’d need is not only an event but also a way to block the normal flow of uploads, basically “cancelling” the upload from your event handler.
@alberto93
Do you really need a warning for uploading to cloud on a cloud platform?
You also do not have an info on cow milk packages that it is cow breast milk normally for a calf from mixed of hundreds breastfeeding female cows.