Sample script to copy media files #16121
Unanswered
jiangweiatgithub
asked this question in
Q&A
Replies: 1 comment
-
|
You can't invoke custom objects from script tasks. They are supposed to be safe. What you need is a custom method that would be provided to the script engine, to move media. This could be done as part of a PR in the Media module, search for Global Method Provider examples. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was just wondering about how to enter the Javascript code into a Script task, for example, copying disk files frome one folder to another. I tried the following script, but nothing happened; it does doe what I want it to when running the first 5 lines in a standalone js script file.
And how can I pass into a script like the above a string returned by a Liquid expression, such as the following?
{{ Workflow.Input.ContentItem.Content.UserRegister.MyPhoto.Paths }}TIA!
Wei
Beta Was this translation helpful? Give feedback.
All reactions