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

gordon’s picture

The 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

dalvir’s picture

hello 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

rhimes’s picture

@gordon -

file module ...... version in v3.x handles the uploads itself

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"?