Closed (fixed)
Project:
ImageField
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2009 at 19:35 UTC
Updated:
19 Mar 2009 at 01:56 UTC
When a user uploads a new image (and saves the node), they get a confirmation message saying "file xxxx/yyy/zzz.jpg" has been created. I would like to find out how to suppress this message. (In case you're wondering why, it's because the site is user facing and the message is a bit too technical for my audience. As long as they see the image in the node, that's all the confirmation they need)
CCK Version: 5.x-1.10
Imagefield Version: 5.x-2.1
Download method: Public
Imagefield Config: Max Resolution - 0; Max Filesize - 0; Max Images - 1; Image Path - files/pictures/user/[user];
Comments
Comment #1
quicksketchWell, judging from the lack of responses, you may have determined that there isn't an easy solution to this problem. Those messages are generated by Drupal core itself in the file_check_directory function, so they're difficult to prevent. However, this problem has been fixed in Drupal 7 and this message is no longer displayed. So eventually this will be fixed.
The only option you have in the short term if you really want to get rid of these messages is to write a custom module that adds directories for each user when they register.
Note, I haven't tested this code. Other than that, I'd say we'll just wait for Drupal 7. I'm closing this issue since it is over 2 months old. Please reopen if you have further questions.
Comment #2
quicksketchOh, looks like this is fixed in the Drupal 6 version. We have a new "field_file_check_directory()" function which can be used. It essentially is a backport of the Drupal 7 file_check_directory() function only it is "silent" and doesn't pop out all those messages. However, again, Drupal 5 is maintenance only and these changes will not be backported.