-
Notifications
You must be signed in to change notification settings - Fork 17
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
File created trigger is not fired when the file is created locally on the server #65
Comments
I am seeing the same issue. I scan a document as PDF with a HP multifunctional printer and store it in a directory i.e. /var/www/nextcloud/data/user/files/scaninbox shared via samba. I would like to execute a script that OCRs the PDF and adds a text layer so it can be searched via elastic search. Unfortunately the script is never executed although sudo -u www-data php -f /var/www/nextcloud/cron.php is executed. |
@mlsxlist Do you use nextcloud for storing the file? Or do you store it using the operating system for that? In latter case, have you tried adding the file to nextcloud afterwards? |
same issue here, running occ files:scan (--all / user / --path) does not trigger the workflow. I would like to achieve exactly the same thing: my scanner uploads the pdf via ftp, and I would like to run a workflow to OCR the pdf. it does work when I upload the pdf using the normal UI. |
I run "occ scan" as a cron job, but it does no trigger the workflow. |
Do you know if a workflow is triggered if you add the file via the webdav api? |
yes it is, that's currently my workaround |
I'm using a samba share as external_storage to access scanned hardcopies (my printer/scanner is only able to use samba as network storage). Would be great if files:scan would emit a postCreate to get flows triggered for external storages. Unfortunately I cannot use webdav with my printer/scanner. Is there any other workaround? |
Hello,
I have a MFP that is configured to scan and push pdf files to a SMB folder within the data files of an user on the Nextcloud server
The file permission and ownership (www-data) are taken care of. It seems that the "File created" event is not triggered.
Steps to reproduce
sudo -u www-data php -f /var/www/nextcloud/cron.php
echo "Hello, world!" | sudo -u www-data tee /var/www/nextcloud/data/userxyz/files/scan/test.txt
sudo -u www-data php -f /var/www/nextcloud/cron.php
Expected behaviour
The flow is triggered and performs per expectations.
Actual behaviour
The flow is not triggered
Workflow Script app
Workflow Script app version: (see apps admin page:
/index.php/settings/apps
)Operating system: Linux 5.7.0-0.bpo.2-amd64 #1 SMP Debian 5.7.10-1~bpo10+1 (2020-07-30) x86_64
Webserver: Apache (apache2handler)
Database: mysql 10.3.23
PHP version:
7.3.19-1~deb10u1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, exif, memcache, msgpack, mysqli, pdo_mysql, apc, posix, readline, recode, redis, shmop, SimpleXML, smbclient, snmp, sockets, ssh2, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, Phar, memcached, libsmbclient, Zend OPcache
Nextcloud version: 19.0.4 - 19.0.4.2
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from: unknown
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
The text was updated successfully, but these errors were encountered: