The Basics
- Nextcloud Server version (e.g., 29.x.x):
- 30.0.2
- Operating system and version (e.g., Ubuntu 24.04):
- Web server and version (e.g, Apache 2.4.25):
- Reverse proxy and version _(e.g. nginx 1.27.2)
- PHP version (e.g, 8.3):
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
- The server is hosted by Ocloud. I don’t have this information, or I don’t know where to get it from
Summary of the issue you are facing:
I am trying to set up a Nextcloud Flow to perform an action when specific files are uploaded.
I have configured a test flow with the following settings:
Trigger (When): File created
Condition (and): File MIME type is PDF Documents
Action (Then): Run script
For the “Run script” action, I’ve used the following minimal script to test its functionality:
echo “— FLOW SCRIPT EXECUTED AT $(date) —” >&2 exit 0
This should write a line in the logging.
I can successfully save the flow. But when I want to trigger it by uploading a PDF file, the expected line “— FLOW SCRIPT EXECUTED AT [Date/Time] —” does not appear in the Nextcloud logs under “Administration → Logging”.
I’m not sure if the script doesn’t work or if the expected line may be written to a different location (which I don’t have access to) — or not written at all.
Could someone check if I did a mistake or did I misunderstand how this flow works?