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

Arto’s picture

Component: User interface » Miscellaneous
Issue tags: -File Framework

The 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, not file:// 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.php as 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.)

Arto’s picture

Title: fetch bitstreams from url » Fetch bitstreams from file:// URLs
Component: Miscellaneous » User interface
Assigned: Unassigned » Arto
Status: Active » Fixed
Issue tags: +File Framework, +drupal_http_request, +file_get_contents

Component: Miscellaneous » User interface
Status: Fixed » Closed (fixed)
Issue tags: -drupal_http_request, -file_get_contents

Automatically closed -- issue fixed for 2 weeks with no activity.