On our user registration page, I want to allow users to upload files via file attachments (part of core I think?). When you go back and log in, however, the attachments disappear. I have set up a custom filefield path to keep files organized and the files are still on my server but don't get moved/re-associated.

Using a CCK file field works, but I would rather use file attachments, which are supported by the iTweak Upload module. I have temporarily turned this module off as well as a redirect from Rules and still no luck.. Thanks for any ideas!

Link: http://graphiclabinc.com/user/register (note the CP with file attachments should show up under the Account/My files tab - the tab for "Upload files" is an old method we want to replace)

Comments

mattcasey’s picture

So, I found that File attachments will always go to the same folder set in admin/settings/file-system, which does not accept tokens.

I suppose the "drupal way" is to use Filefield for this purpose, but I still have two ideas, but as I'm not a developer, trying any one of them could be a long rabbit hole:

  1. Create a module like Filefield_paths - "FileAttachment_paths"?
  2. Fix the data saved by Content Profile. For some reason, only file attachments (not filefield content) get dropped from the node (and not deleted) after user registration. However, after registration, new attachments can be saved and work as expected.
  3. Modify iTweak Upload module to work for filefield content
mattcasey’s picture

More looking...

it seems the files *are* moved according to Filefield_path and tokens! Only they don't appear on the Node edit form. For now, I can work around that.

mattcasey’s picture

Priority: Normal » Minor