Love the module; it is probably THE only reason I initially considered using Drupal for a school website. It will make handling pupils' and teachers' uploaded content so much easier. So a big thanks for your awsome work!

Just wondering... as well as the 'send to textbox' feature, is it plausible that in the future there might be a 'add as attachment' feature, which integrates with the core 'upload' module (or perhaps replaces it)?

Attachments are a 'must-have' for our school website, but it is awful how every attachment is simply placed in the 'files' directory - what a mess that's going to make. IMCE would be a far more elegant solution for attachments.

Thanks.

Comments

Julien PHAM’s picture

Mmmm can you explain more precisely what you mean by "attachment"? IMCE is able to upload any file, not just pictures, and you can create new directories to put them in. I usually create a directory per user / per year / per month with a quota.

Moreover if you use CCK you can use the CCK IMCE image module, and then you can create a field for attachments.

But I'm unsure of what you really want.

-Anti-’s picture

> can you explain more precisely what you mean by "attachment"?

If you look below, at the bottom of the page, you'll see the core
'file attachments' feature. If you click 'choose', it browses your hard
drive. When 'Attach' is clicked, the file is uploaded to /default/files/.

It would be great if IMCE could hook into that somehow, so that when
'choose' is clicked, IMCE is invoked instead. The user could use IMCE
to upload a file to their own folder structure or select an existing file,
and then let the core attachment module finish its job and display
the link under the post.

I like the concept of attaching files to the bottom of posts, but the core
implementation of it sucks. Major drawbacks, for instance, are that to
add the same file to different posts, the user has to upload the file multiple
times. Also, all files for all users go into one directory, and there is no way
to manage them - maintainers can't tell which nodes have attachments,
or which attachments belong to which node.

To put this into perspective, it's for a school website where IMCE is going
to provide the pupils with 5mb of their own space in their own folder, plus
access to a couple of public folders.

Cheers.

Julien PHAM’s picture

And instead of using upload feature, perhaps you can try imce image module, it is a cck implementation. You create a cck field of this imce image type, and you can then upload files other than just image, and then you can choose how you want them to be displayed in your theme. It is like a standard cck field, just that it uses imce instead.

-Anti-’s picture

Status: Active » Closed (fixed)

> instead of using upload feature, perhaps you can try imce image module, it is a cck implementation. You create a cck field of this imce image type, and you can then upload files other than just image, and then you can choose how you want them to be displayed in your theme. It is like a standard cck field, just that it uses imce instead.

I haven't studied cck or views yet - that is probably my next big job to do, but I've still got a hundred little loose ends to tie-up and get clear before I dare progress any further.

I gather that you're saying, if I use the imce_image field, I can then theme... erm... 'something' (I don't understand what you mean by 'choose how you want them to be displayed in your theme'), to mimic the look of the core 'attachment' module?

OK, thanks for the suggested workaround. I'll take a look after I've got some experience with cck.

Cheers! :)

Julien PHAM’s picture

What I mean is that using CCK (and as for myself CCK is the reason I choose drupal) and the imce_image cck field can do what you need. You can setup the number of max files to be attached, and not only images, to a node.

And then yes, with theming you can setup the look of your attachment on your page.

-Anti-’s picture

Thank you for the clarification.
It looks like there are problems with the current dev version of imce_image.
But by the time I learn how to use cck and views, I'm sure it will all be fixed!

Wow, I'm so happy that I don't have to use the core upload system for my auth users!

Cheers.

Elijah Lynn’s picture

The IMCE Image method is not an ideal solution to this in its current state. I would love to see the "add as attachment" for IMCE as well. Would another module called "IMCE File" be more appropriate?

Also one other thing that would be nice is to be able to use this "IMCE File" inside of comments (forum comments).

NPC’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » Active

I agree with Elijah, it would be great to have this feature - CCK is wonderful, but in some cases one has to use the core's file attachments to nodes - and then a file manager with IMCE's power would be extremely useful.

ufku’s picture

Status: Active » Closed (won't fix)

You can use filefield_sources.

NPC’s picture

FileField sources is only applicable to the CCK's filefield. Not to the core of Drupal attachment of files to nodes - which has nothing to do with CCK at all (perhaps in 7 it does, though - I haven't checked it yet).