I have a configuration ("youtube-config") that:
- harvest: harvest a particular filefield
- process: upload file to youtube
- complete: store the youtube url in an emfield
I have a second configuration ("s3-config) that:
- harvest: harvest this same filefield
- storage: store the file on s3
Both configurations work fine.
I then tried combining the two configurations ("combo-config"):
- harvest: harvest the filefield
- process: upload file to youtube
- storage: store file on s3 and delete local copy
- complete: store the youtube url in an emfield
With this combo-config, the "complete" step never runs. I get this watchdog message:
Harvested file is not readable, check permissions: http://www.youtube.com/watch?v=abcdefg
I then tried swapping the 'storage' and 'complete' actions ("combo-config2"):
- harvest: harvest the filefield
- process: upload file to youtube
- storage: store the youtube url in an emfield
- complete: store file on s3 and delete local copy
But I get the same error message
Should I be able to combine "upload to s3" with "upload to youtube" in the same configuration?
If I go back to two separate configurations, is there a way to ensure that the s3-storage step does not delete the local file before the youtube-process step finishes uploading the local file to youtube?
For example, is there a way to ensure this sequence of steps:
harvest: harvest this filefield
process: upload to youtube
complete: store youtube url in emfield
storage: once the "complete" step is complete, store the file on s3 server and then delete the local copy
Thanks very much