Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trigger at the end of upload #525

Closed
Philippe-M opened this issue Sep 23, 2016 · 0 comments
Closed

Add trigger at the end of upload #525

Philippe-M opened this issue Sep 23, 2016 · 0 comments

Comments

@Philippe-M
Copy link

Bonjour,

Dans la fonction add_uploaded_file du fichier admin/include/functions_upload.inc.php il pourrait être intéressant d'ajouter un trigger afin de pouvoir intervenir après l'upload et l'ajout dans la base de données et non avant comme le fait le trigger upload_file. Je propose :

trigger_change('after_add_upload_file', null, $insert) pour le cas d'un nouveau fichier.
trigger_change('after_add_upload_file', null, $update) pour le cas d'une mise à jour.

@plegall plegall self-assigned this Oct 26, 2020
@plegall plegall added this to the 2.11.0beta5 milestone Oct 26, 2020
@plegall plegall changed the title Ajouter de trigger pour l'upload Add trigger at the end of upload Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants