workflow_script
workflow_script copied to clipboard
can a script be used to rename files on upload?
Steps to reproduce
I've tried to find documentation on this question, but couldn't find anything. So I want to ask here: Is it possible to use a simple script to rewrite (some) file locations as they get uploaded?
I'm using a google pixel phone with auto-uploading enabled. The camera puts portrait pictures into a subfolder, which makes it quite hard to browse through these pictures in any tool other than the google pictures app. The nextcloud gallery also suffers a lot from this. See e.g.: https://support.google.com/pixelphone/thread/12756704?hl=en
So I'm left with workarounds for this android limitation. Currently, I'm running a manual script to rename these files every now and then and then rescan the whole data folder. I'm hoping that a workflow script could improve this situation somehow?
Expected behaviour
Documentation on whether one can move an input file, or whether this will require a rescan then afterwards?
Actual behaviour
I don't want to experiment with this without any documentation. So I don't know if it actually works or not?
Workflow Script app
1.3.1
Server configuration
Operating system: nextcloudpi
Web server: Apache
Database: MySQL
PHP version: 7.3.14
Nextcloud Version: 18.0.4
Where did you install Nextcloud from: nextcloudpi