Active
Project:
e-Commerce
Version:
5.x-3.6
Component:
-- other --
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2009 at 15:45 UTC
Updated:
28 Mar 2009 at 18:41 UTC
hello to all,
i want at my file downloaded product
i want file attachments files is being stored as file downloaded files of that node
also i want to add more than one files
i m trying myself.
but if anyone solve it plz reply
Comments
Comment #1
gordon commentedThe file module is what you use, but the version in v3.x handles the uploads itself and only allows you to upload 1 file at a time.
How ever the version 5.x-4.x-dev does support mutiple file uploads to a node product, and you should be able to get it working with v3.x
Comment #2
dalvir commentedhello to all
i just make the filepath field
'#type' => 'hidden',
'#default_value' => 'private/privacy_test.txt',
so ec_file/autocomplete did not gives any error
and then
add in upload.module
db_query("INSERT INTO {ec_product_file} (nid, fpath, size) VALUES (%d, '%s', '%s')",$node->nid, $file->filepath, $file->filesize);
make comment in file.module
//return db_query("INSERT INTO {ec_product_file} (nid, fpath, size) VALUES (%d, '%s', '%s')", $node->nid, $node->fpath, $node->edit_size[0]);
to me its looks that it will works fine bcoz it is inserted in ec_product_file table
wait for ecommerce people comments on it.bcoz i m new in drupal.
thanks
Dalvir
Comment #3
rhimes commented@gordon -
huh? Where oh where? - I can't see/find anything (maybe 'cause can't see/find any documentation for 5.x/3.x) other than "need to FTP prior" for any & all files for file products.
Where & how does it "handles the uploads itself"?