I'm trying to use this feature.. I have to "upload" an audio file of about 20mb.. This should become a file type.. So I have think to do this:
Content managemente -> bitstreams -> fetch bitstream from URL
inside the fetch url: file:///home/sub/sc*****-Q/sitename/bbr/sites/default/files/myfile.mp3
responsitory: Fileframework
SUBMIT
Got this error: Error fetching file:///home/sub/sc*****-Q/sitename/bbr/sites/default/files/myfile.mp3: invalid schema file
why??
also.. I upload for a test a little word file.. all goes well but I haven't a file content created.. I can see the bitstream on the bitstream list but can't do anything with it.. I'm doing something wrong??
Thanks
Andy
Comments
Comment #1
Arto commentedThe problem was that Bitcache used Drupal's
drupal_http_request()function to fetch the URL contents, and that function only supports HTTP and HTTPS URLs, notfile://URLs.Changeset [213698] fixes this, adding support for any URL schema recognized by PHP's
file_get_contents()function.Please try the latest 6.x-1.x-dev snapshot which includes this fix. (Be sure to run
update.phpas the latest snapshots contain database updates.)(Note, however, that fetching a bitstream into a Bitcache repository does not, in itself, create a new File Framework node. You would have to ask the author of File Framework how to create a file node from an already-uploaded bitstream.)
Comment #2
Arto commented