nextcloud / nextcloud/workflow_script
can a script be used to rename files on upload?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- PHP
- Sterne
- 89
- Forks
- 19
- Ø Merge
- 6 Std. 38 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
In der Issue wird keine Datei und kein Test genannt. Beginne damit, die Dokumentation der Workflow Script app und das darin dokumentierte Verhalten bei der Dateiverarbeitung zu prüfen, und kläre dann, ob eine hochgeladene Datei verschoben werden kann und ob ein erneuter Scan erforderlich ist; als erledigt gilt die Aufgabe, wenn das unterstützte Verhalten und jede Einschränkung festgehalten sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php
- Bereich
- backend, documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100