asset should be stored first to a temporary location before uploading to dam using dam update workflow | Community
Skip to main content
Amit-Tiwari
Level 4
June 21, 2017
Solved

asset should be stored first to a temporary location before uploading to dam using dam update workflow

  • June 21, 2017
  • 1 reply
  • 1108 views

My Requirement: I want to scan the asset before uploading to DAM. So, when i upload any asset it should be stored to temporary location(somewhere in hard-disk) so that i can send that file for scanning.

Am handling this via Dam Update Workflow

Any help would be appreciated

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

When the workflow is started, the asset is already stored in the repository. So you need to consider the way the asset upload is performed. Starting with AEM 6.3 the file isn't streamed to a tempfile anymore but directly to the repo. But even in earlier versions the tempfile is an implementation detail, and you cannot use it to scan it.

If you want to scan all assets before uploading, you need to define a mandatory upload feature and disallow the out-of-the-box feature of uploading files via browser.

Jörg

1 reply

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
June 21, 2017

When the workflow is started, the asset is already stored in the repository. So you need to consider the way the asset upload is performed. Starting with AEM 6.3 the file isn't streamed to a tempfile anymore but directly to the repo. But even in earlier versions the tempfile is an implementation detail, and you cannot use it to scan it.

If you want to scan all assets before uploading, you need to define a mandatory upload feature and disallow the out-of-the-box feature of uploading files via browser.

Jörg