getDirectory() . "/imported/" . $ownerId; try { //Copy the temporary file over to the "organize" folder so that it's off our webserver //and accessible by airtime_analyzer which could be running on a different machine. $newTempFilePath = Application_Model_StoredFile::copyFileToStor($tempFilePath, $originalFilename); } catch (Exception $e) { @unlink($tempFilePath); Logging::error($e->getMessage()); return; } //Dispatch a message to airtime_analyzer through RabbitMQ, //notifying it that there's a new upload to process! Application_Model_RabbitMq::SendMessageToAnalyzer($newTempFilePath, $importedStorageDirectory, basename($originalFilename), $callbackUrl, $apiKey); } }