Hello,
I am currently configuring Marketplace to allow sellers to sell multiple files per product, since sellers have several files for each product. In order to do this, I am planning to use one filefield and set the number of values to 'unlimited', so its like a multi-value filefield.
I am also using other modules that extend the functionality of filefield, such as filefield paths to clean, rename and move files and filefield sources to attach files from ftp.
I've gone back and forth with the configuration quite a bit and got almost everything working. However, I am running into some funny behavior where some of the functionality of other modules kind of disappears for 'product files' filefield.
Therefore, it would be most helpful if you can advise on the following;
-Does the current mp_file work with multivalue filefields and if not what do I need to make it work.
-Also, is mp_file is compatible/supports filefield paths and filefield sources.
Appreciate your help,
Thanks,
KH
Comments
Comment #1
syndicateStorm commentedHi 3dloco, filefield paths looks like it has some real potential, but somehow I've never used it even though it's the 120th most used drupal module :-). I'll have to do some research. It might be a good fit for Marketplace.
Marketplace does do a lot behind the scenes for the filefield in mp_file which, since it wasn't created with filefield paths in mind, might be messing things up. I'll take a look at compatability. Compatibility with Ubercart and it's usage of features may also be an issue.
Presently, Marketplace supports multiple file uploads, but only one at a time (each time the node is saved). Which is better than nothing, but not nearly as useful as uploading all your files at once. This shouldn't be too hard to fix but I'll need to look at the code. If you feel comfortable with php, I would imagine mp_file.module is the only place you would need to look.
I'll let you know what I learn. Feel free to post your ideas or patches here and I'll try to come up with a more robust mp_file, as I have time.
Comment #2
syndicateStorm commentedHey,
So I checked out filefield paths. Very cool! Thanks.
Ubercart Marketplace moves the uploaded files to a secure location after upload. This may be the problem (primarily because mp_file wasn't designed with filefield paths in mind, I think it's still doable though). I'll have to play with this a bit more, to tell you for sure.
Comment #3
3dloco commentedHello SyndicateStorm,
Thanks for looking into this. It would be most helpful to know whether it is possible to allow mp_file and filefield paths to work with each other...
Thanks,
KH
Comment #4
syndicateStorm commentedSorry 3dloco, I haven't forgotten you, just haven't had enough time to keep up with support requests. I'm hoping to start clearing out the queue again in another month or so. I'll try to make this one of the first issues I close out if I can.
Comment #5
AxelGiqueaux commentedLike 3dloco I am trying to add several files in one filefield. I use File Aliases, FileField Paths, Transliteration : to sanitize, to organize and to protect files on server.
Yes there is several issues :
- on the product submission form : generated html code in the upload field lock the possibility to add a new upload creating a javascript error, then no unlimited uploads
- on product page : only the first added file is hidden, all other files appearing.
- on the customer downloads page : after purchase the file(s) do not appear.
I hope a solution can be quickly find. Or i have to find another way to do that.
Thanks,
Axel
Comment #6
3dloco commented@AxelGiqueaux,
Check out UC Sell CCK Fields Access...I am currently using this as a workaround to allow sellers to have multiple files per product, meanwhile this gets supported by Ubercart Marketplace ;)
Note that it is a workaround for now since uc sell cck field access is still in dev (click on view all releases to download) and I had to disable mp_file for everything to work ok. I also created my own view listing the files that the customer has purchased as with this workaround they will not appear on the purchased files view.
Hope this helps,
KH
Comment #7
AxelGiqueaux commented@3dloco Thanks a lot, i will try. and will tell my results here. Thanks