The session.use_only_cookies setting must be "off" for the digital
object import to work, so you are doing the right thing there. I'm
sorry to hear that your still having problems with though. :(
What happens when you try to upload video files? Does the "Link digital
object" function work with the same video files?
The PHP code for uploading files which is called by the swf uploader is
here:
apps/qubit/modules/digitalobject/actions/uploadAction.class.php
Hope that helps!
Good work on getting the YUI debugger working Alex - you've got some
javascript skills. ;)
I'd be really surprised if the ACL check is throwing a 401 error, I
haven't explicitly set the WWW-Authenticate header anywhere, but maybe
symfony or PHP is magically setting this header somewhere? One thing
too check for is that the YUI uploader AJAX request is passing a
"symfony" parameter with the session id to the upload page; If the
session id is missing then the ACL check will definitely fail.
I'm curious why the standard (non-flash) upload isn't working properly;
I would try and solve the non-flash problem first and see if that fixes
the flash uploader. A good place to start is
lib/model/QubitDigitalObject.php, Line 1661:
$command = 'ffmpeg -y -i '.$originalPath.' '.$newPath.' 2>&1';
If you echo that string, you can run it on the command line and see if
ffmpeg itself is throwing any errors.
Cheers,
I know this is a real hack, i would rather find a way to have this
working without having to hack ICA-AtoM code. Any suggestions David?
One caveat for Jesús' post which has confused me in the past - the
$PATH variable is sometimes not what you would expect because PHP may
run command line tasks using a different shell then the one you are
using on the command line.
Here's some more information that I found helpful when dealing with
PHP specific paths:
http://stackoverflow.com/questions/3428647/php-exec-path-variable-missing-elements
Cheers,
David Juhasz,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | P: 604.527.2056 | F: 604.521.2059