Closed (fixed)
Project:
File Framework
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2008 at 07:19 UTC
Updated:
7 Apr 2009 at 21:10 UTC
Is there any way I can toggle on/off whether to use the Attachments module on specific node content types?
Comments
Comment #1
miglius commentedYes, this can be configured per content type at the content type configuration 'admin/content/types'.
Comment #2
spiffyd commentedI should note that the option to toggle the File Framework Attachment module per content type is only available in the latest dev version (it doesn't exist for the alpha).
So after I disabled the FF attachments mod for my content type (and keeping the core attachments mod under Workflow Settings enabled), I encounter an error when attaching a video file...
1) Sometimes I get a white screen with this message after uploading...
{ "status": true, "data": "\x3ctable id=\"upload-attachments\" class=\"sticky-enabled\"\x3e\n \x3cthead\x3e\x3ctr\x3e\x3cth\x3e\x3c/th\x3e\x3cth\x3eDelete\x3c/th\x3e\x3cth\x3eList\x3c/th\x3e\x3cth\x3eDescription\x3c/th\x3e\x3cth\x3eWeight\x3c/th\x3e\x3cth\x3eSize\x3c/th\x3e \x3c/tr\x3e\x3c/thead\x3e\n\x3ctbody\x3e\n \x3ctr class=\"draggable odd\"\x3e\x3ctd\x3e\x3c/td\x3e\x3ctd\x3e\x3cdiv class=\"form-item\" id=\"edit-files-28-remove-wrapper\"\x3e\n \x3cinput type=\"checkbox\" name=\"files[28][remove]\" id=\"edit-files-28-remove\" value=\"1\" class=\"form-checkbox\" /\x3e\n\x3c/div\x3e\n\x3c/td\x3e\x3ctd\x3e\x3cdiv class=\"form-item\" id=\"edit-files-28-list-wrapper\"\x3e\n \x3cinput type=\"checkbox\" name=\"files[28][list]\" id=\"edit-files-28-list\" value=\"1\" checked=\"checked\" class=\"form-checkbox\" /\x3e\n\x3c/div\x3e\n\x3c/td\x3e\x3ctd\x3e\x3cdiv class=\"form-item\" id=\"edit-files-28-description-wrapper\"\x3e\n \x3cinput type=\"text\" maxlength=\"256\" name=\"files[28][description]\" id=\"edit-files-28-description\" size=\"60\" value=\"test.flv\" class=\"form-text\" /\x3e\n \x3cdiv class=\"description\"\x3e\x3csmall\x3ehttp://denislam.com/drupal/sites/default/files/test_2.flv\x3c/small\x3e\x3c/div\x3e\n\x3c/div\x3e\n\x3c/td\x3e\x3ctd\x3e\x3cdiv class=\"form-item\" id=\"edit-files-28-weight-wrapper\"\x3e\n \x3cselect name=\"files[28][weight]\" class=\"form-select upload-weight\" id=\"edit-files-28-weight\" \x3e\x3coption value=\"-1\"\x3e-1\x3c/option\x3e\x3coption value=\"0\" selected=\"selected\"\x3e0\x3c/option\x3e\x3coption value=\"1\"\x3e1\x3c/option\x3e\x3c/select\x3e\n\x3c/div\x3e\n\x3c/td\x3e\x3ctd\x3e3.91 MB\x3c/td\x3e \x3c/tr\x3e\n\x3c/tbody\x3e\n\x3c/table\x3e\n\x3cdiv class=\"form-item\" id=\"edit-upload-wrapper\"\x3e\n \x3clabel for=\"edit-upload\"\x3eAttach new file: \x3c/label\x3e\n \x3cinput type=\"file\" name=\"files[upload]\" class=\"form-file\" id=\"edit-upload\" size=\"40\" /\x3e\n\n \x3cdiv class=\"description\"\x3eThe maximum upload size is \x3cem\x3e100 MB\x3c/em\x3e. Only files with the following extensions may be uploaded: \x3cem\x3ejpg jpeg gif png txt html doc xls pdf ppt pps avi mpeg mpg mov rm flv wmv 3gp mp4 dir dcr ogg\x3c/em\x3e. \x3c/div\x3e\n\x3c/div\x3e\n\x3cinput type=\"submit\" name=\"attach\" id=\"edit-attach\" value=\"Attach\" class=\"form-submit\" /\x3e\n" }
2) Sometimes I get an error saying "A file description can not be empty." even though the description is not empty when I try to save the node...
So I cannot create the video node as a result.
Suggestions?
Comment #3
miglius commentedFileFramework implements a "File attach" module which replaces the core "upload" module. This is because framework handles files differently from the core upload module, i.e. it saves files to bitcache instead of the file system, it also has other features as attachments to the comments and inline preview of the attachments.
I never tested if the core "upload" module can live together with the FileFramework attach module on the same system.
Why cannot you just use FileFramework to upload videos? Uploaded videos will be converted to the flash behind the scenes.
Comment #4
spiffyd commentedWhy not use FF to attach videos? Mainly b/c FF does not have a batch FTP video import feature like FlashVideo does so it would not be efficient to upload large videos one at a time...
Also, I'm not a big fan of FlowPlayer... I prefer JW Player.
Comment #5
miglius commentedFileServer module (http://drupal.org/project/fileserver) can be used for a batch uploads via webdav.
Comment #6
spiffyd commented3 things...
1) Probably a feature request: It would be beneficial to clarify that the File Attachments settings in Content Type config is for the File Framework module (to distinguish fore native File Attachment settings under Workflow settings).
2) Even when I disabled the File Framework File Attachments in the content settings, FlashVideo still doesn't work. Once again, the only way to use FlashVideo is to not install the Fileframework Attachment module. See this thread for discussion http://drupal.org/node/344274
3) The FileServer/DAV modules aren't working yet. There's this critical error: http://drupal.org/node/282970 that no body has been able to resolve thus rendering WebDAV unusable with Drupal.
And the problem indicated before still exists...
2) Sometimes I get an error saying "A file description can not be empty." even though the description is not empty when I try to save the node...
So I cannot create the video node as a result.
I found out that this problem persists even if FF Attachments is turned off for that particular content type. I have started a new thread for this issue: http://drupal.org/node/348638
Comment #7
miglius commentedFile attachment module allows toggle file attachments per node type.