I installed swf upload and swf field appears, but there's also regular upload field, when I turn off reglar upload at node type configuration page then files attached into node thru swf upload module aren't displayed.

Comments

mv1’s picture

Same thing happens to me! Probably something simple... I've been looking around but I am new.

mv1’s picture

I've been working on this but still can't figure out the problem...
it seems like the attachments form is being unset properly but still shows up!

dabellator’s picture

Looks like other people are having this same issue, anyone found a solution yet? I'm using swfupload as a way for my clients to transfer files to me, so its a little distracting I feel to have an instruction field telling them to "open the file upload field, no, not the bottom one, make sure you use the top and just ignore the bottom..."

anyway to work around this? any ideas on customizing the look of the upload field? thanks guys, I'm really loving how easy this module makes uploading.
-JB

dabellator’s picture

Status: Active » Fixed

Problem solved. you need to call a new template file the theme your cck form in your theme, or create a module to do it for you and not mess with your template.php file. In that new file, you need to unset 'attachments' and then print your form:

<?php unset($form['attachments']); ?>
<?php print drupal_render($form); ?>

the placement of this is very important, as I discovered. if you unset attachments after you render form, it will override and still display. i think this is the issue the swf module runs into, that it is trying to turn off attachments after it has already been displayed.

let me know if you need some more help, i dont really want to type the whole thing unless people are still checking this out.
-JB

Status: Fixed » Closed (fixed)

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