i have an image field for video content type. i want to add image some times from default upload choice and local computer and some times giving a video url (youtube, vimeo...). but FileField Sources only support direct file url for remote files. could you say about how can i make support for unsupppoted url.

CommentFileSizeAuthor
#4 my problem.PNG37.7 KBerata
unsupported url.PNG9.79 KBerata
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Sorry FileField Sources is not capable of transferring arbitrary URLs like this, especially video content which very likely may have copy-protection added to it. FileField Sources can only work when you point to a *file*, not a page that contains a video.

erata’s picture

so, what can i do if i don't transfer the thumbnail and only use it remote source. i don't take it locale, but use the tumbnail for cover image for videos . is it possible?. there are functions for this for example http://forrst.com/posts/Grab_Youtube_Vimeo_Embed_Thumbnail_PHP_Functio-r....

quicksketch’s picture

You'd need to use a dedicated field for handling remote videos like this. i.e. https://drupal.org/project/youtube or https://drupal.org/project/emfield

erata’s picture

FileSize
37.7 KB

you are right, but my structure is not a little compatible for those modules. i used internet sources modules too. my only need is file field module with online url image support. the other modules maybe make the job but the easiest way to solve my problem is with file field module.

i solve my problem adding function in http://forrst.com/posts/Grab_Youtube_Vimeo_Embed_Thumbnail_PHP_Functio-rTL to remote.inc and give url the function's output. but now i have a different problem. remote function sometime run, sometime does not.
promlem is showned at attahment image. there is an error "The remote file could not be transferred due to an HTTP error (0)."

quicksketch’s picture

I'm sorry your question is beyond the scope of help that I provide in the issue queue. I can't help with custom coding or modified versions of the module. I would recommend making your own custom source rather than hacking the remote source. Even then you'll be on your own when writing a new source, at least you won't have a modified version of the FileField Sources module, which would prevent you from updating to newer versions of the module as they are released.

erata’s picture

thanks.

apaderno’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)
Issue tags: -unsupported url