Hi,
I have a site that allows users to upload video. The videos are uploaded through a safecracker form to a queued field and stored in a specific directory. I am using a service from Encoding.com to watch that folder and convert new files when they’re added. Encoding.com returns the converted file to my server and sends an xml response to a custom php script. My php script then finds the entry in the database that contains that file and adds the new file to the regular video field for output in a viewable entry. However when I try to the view the entry EE will not output the file url in the template until the directory is synced in the file manager. I’ve tried adding the new file using a hard-coded url value and a {filedir_x)value and neither makes a difference. IN fact if I hard code the url it will not work after syncing either.
How can I go about fixing this? I’ve done some checking and there doesn’t seem to be any easy way to call file manager sync programmatically.