Posted by szantog on December 5, 2011 at 9:32pm
4 followers
| Project: | File (Field) Paths |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
In my case, this is exactly: I'm using media_youtube in a field. In this, I've enabled upload image, or embed youtube video. When upload a youtube video, the file display completely broken, because of moving files.
These should be solutions:
1. Only process file, it has own extension.
It works with embed video in my case, but the question is: Uploaded files without extension always need to skip ffp process?
2. Add field to ffp administration, where user can edit the exceptions of ffp process, eg can set some file filemime.
3. Other modules what provides this type if files need to use hook_filefield_paths_process_file() to set $file['new'] always false.
Comments
#1
And a patch for option 1.
#2
Probably the module shouldn't process any remote files. The file_entity module provides a file_entity_file_is_local() whose code could be re-used for this purpose.