I’m trying to figure out if it is possible to run a conversion task and have the task put the file in a specific location on the server.
When I try to use the “SAVE_ON_DISK” task type as shown below I get the following error:
$moveTask = new Task(); $moveTask->type = TaskType::SAVE_ON_DISK; $moveSettings = array( 0 => buildAtt(TaskSetting::DESTINATION, "C:\\temp\\test.jpg"), 1 => buildAtt(TaskSetting::ADD_TO_CATALOG, AddToCatalog::DONT_ADD_TO_CATALOG) ); $moveTask->settings = $moveSettings;
Any suggestions on how to do a conversion and put the file somewhere (not downloaded) without it being added to the catalog. Or do I need to pursue a custom script for this?