Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
file system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2007 at 17:35 UTC
Updated:
20 Dec 2009 at 00:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
RobRoy commentedWould be a great feature for 6.x-dev. A patch would be very useful (http://drupal.org/patch). I'm surprised this isn't in there already. Go for it!
Comment #2
vjordan commentedpatch enclosed rolled against HEAD. If the patch should be rolled against some other branch let me know. I've tested this against my 5.1 install and works okay. I'm still getting to grips with the patching process - let me know if this doesn't work for you and I can re-roll.
A couple of questions:
Note: I notice some problems with the way my installation is handling upload.
These are separate from raising watchdog entries so I'll log bug reports if I can get any details. Might be something for others to also look out for if they test the error conditions and notice unpredictable behaviours.
Comment #3
vjordan commentedComment #4
bdragon commentedDoesn't apply anymore. The function you modified doesn't even exist any more. I *think* you are looking for upload_node_form_submit() now.
Comment #5
vjordan commentedI see that v6 doesn't have function_upload_validate any more. I haven't been following v6 development closely and don't yet have a v6 install configured.
A quick look around suggests that file_save_upload might be the correct place to insert the watchdog calls, right after the drupal_set_message calls and before the return 0 in the switch statement.
Comment #6
drewish commentedi suppose you could call this a usability improvement... maybe it should be postponed for 7.
but file_save_upload() would be the right place for this. you could just log their errors all at once.
Comment #7
drewish commentedi suppose you could call this a usability improvement... maybe it should be postponed for 7.
but file_save_upload() would be the right place for this. you could just log their errors all at once.
Comment #8
panchoUnfortunately this is really too late now, as it would introduce new strings. Moving to D7 queue.
Comment #9
webchickLooking at http://api.drupal.org/api/function/file_save_upload/7 it seems this has been fixed this release.