Closed (fixed)
Project:
Filemanager
Version:
4.6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 Aug 2005 at 00:24 UTC
Updated:
8 Aug 2005 at 17:12 UTC
to the best of my knowledge, this is a legit bug, but perhaps i'm doing something wrong.
steps:
1) download filemanager module w/tag 4.6
2) generate new DB tables using script
3) store filemanager.module in /modules/ directory
4) set whatever preferences in administer/settings/filemanager
once i've done the above, there's no indication anywhere in the interface that anything has changed.
i'm assumming filemanager is supposed to enhance the core upload.module. but uploading files after installing filemanager is not changed. everything is still uploaded to a single directory. and the table 'file' remains empty.
php: 5.04
mysql 4.01
apache 2.0
drupal 4.6
Comments
Comment #1
tostinni commentedFilemanager isn't supposed to add functionalities to upload module, it's just a new module.
To have it work, once you get the preferences set, you need to allow attachment for your content types. Go under
administer / content / configure / content typesthere you can configure each type of content. So enter each one and enable attachments. Take care : if your upload module is still activated, you will see two "enable attachment". Attachment module is at the top of the list, but to avoid confusion, disable first upload module.Also don't forget to allow "add attachment" to your role in the "access control".
Then you can create a new content and see attachment at work.
Comment #2
harry slaughterpilot error!!
thanks tostinni. i feel dumb and relieved at the same time.
did i miss something somewhere? i didn't see any pointers to the content panel in any of the docs that came with filemanager.
Comment #3
tostinni commentedWell, you know this by discovering who Drupal is working, but for newcomers, it is a little disturbing, I myself, spent a lot of time playing with options to understand them.
I think the INSTALL file need a little more help, like this kind of help.
;)
Comment #4
harry slaughteryeah, in my 2nd week as a drupal user, i'm definitely getting the feeling there's a 'secret knowledge' aspect to a lot of this stuff.
and i'm feeling a little wary of swapping out upload.module for filemanager.module. i don't like the fact that it adds new db tables rather than extending the existing ones or at least incorporating them. i'm leaning towards creating my own module based on upload.module and adding the features i want (like unique namespace, file description, other properties).
i'm torn between doing things right, getting what i want, and meeting my client's needs :)
Comment #5
tostinni commentedWell, about the secret knowledge, that's maybe true, but as a developper, I felt curious and to understand it a little more than the surface. So I started looking in the code, and as it's pretty small, I have been able to solve all my problems and in fact it's very interessant the way drupal is built.
So regarding your problem if it's good or not, I think it is. The upload module is intentionnaly left very simple by core maintainers. That's why attachment and filemaneger came to life.
The fact is that each module will tend to use it's own table, because it's better than extend existing tables. If you did this, you may face problem while a new version of drupal will be released. While if a new attachment module is released, the maintainer will probably try not to break existing installations ;)
That's the best way to understand drupal internals and the magic of hooks.
Btw, I think that what you need is covered by attachment module, so if I were you I would save my time extending the core with all problems that would complicate your life when a new version will be rolled out.
Comment #6
harry slaughteri appreciate upload.module being kept simple. and i appreciate the idea of modules extending on it. but i think additional modules should do just that, extend, not replace. files uploaded with filemanager are not going to integrate with files uploaded with upload.module. i think it would have been a better design to use the 'files' table and then add the necessary additional fields to a new table. but they've duplicated the files table with the file table.
i don't think there's any reason a person shouldn't be able to turn on/off filemanager and have upload still work.
Comment #7
tostinni commentedAs I told you, I think it would be a nightmare to maintain if modules began to extend existing tables...
And if you think upload module lack of functionality, you may suggest features and propose a patch to core team ;)
This is a configuration problem. if you add filemanager/attachment it's because you think that upload module don't fit the job. I did this, I also modify a little attachment module and I'm very pleased with this.
And another example of maintaining such customized site. I'm with drupal since 4.5.0, during this time the core evolve pretty much, and while I was putting new versions, I was able to kept my modified custom modules funcionals. This is much difficult when you deal with big modification in core... Because if you don't update the core module you modified, you may break things. With contributed modules, there's no such problem generally.
Comment #8
harry slaughter