Closed (fixed)
Project:
Contact Attach
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
26 Nov 2012 at 23:08 UTC
Updated:
27 Dec 2012 at 01:00 UTC
Contact Attach currently uses a managed file field when the file module is enabled. This is an intended feature, but a user should be able to override this and use a simple file field even when the file module is enabled. An upgrade path from beta2 should be written to automatically toggle this setting (use simple file field) for existing users, as changing from a simple file field to a managed file field (if the file module is enabled) should not come as a surprise for sites that already use the module.
Also add tests for the toggle on the settings form and that the setting actually works on the site-wide contact form and personal contact forms.
| Comment | File | Size | Author |
|---|---|---|---|
| contact-attach-simple-field-toggle-0.patch | 8.41 KB | Tor Arne Thune |
Comments
Comment #1
Tor Arne Thune commentedCommitted and pushed: 1b3836f.
Comment #2
hass commentedWhat does this technically mean? Can we change the description so that non-technican people have a chance to understand what this option does, please?
Managed means it is saved in drupal permanently? The site mails are not saved... Why should the files saved?
Comment #3
Tor Arne Thune commentedThe core file module provides a managed_file field that has more features (like an upload button using Ajax) than the simple file field provided by the system module. The toggle is for those that prefer to use the simple version of the file field, for whatever reasons. It's meant to give a choice to the user. I can see how it can be confusing for users that don't know the difference. Will try to come up with a better explanation when I find time.
Comment #4
hass commentedI have been asked about privacy and if the mails and file will be saved. I said - no we are not reading the mails. Data protection is high.
Please take care that the files are no longer saved than required to send the mail out. I personally see no reason to add these files to the database. They should just go into temp and get deleted "a second" later. I have no idea why it should not possible to port the ajax stuff to unmanaged files, but have not reviewed the core code.
Comment #5
Tor Arne Thune commentedCreated an issue to improve the help text: #1853488: Improve help text for simple file field toggle.
Comment #6
Tor Arne Thune commentedThe files are registered in the database table file_managed also when using a non-managed file field (the simple version provided by the system module). The file attachments are deleted at the next cron run after DRUPAL_MAXIMUM_TEMP_FILE_AGE (21600 seconds).
You are right that they could be deleted right after they are base64 encoded into the message. Will open an issue for it.
Comment #7
Tor Arne Thune commented