Closed (fixed)
Project:
Comment Upload
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2009 at 00:50 UTC
Updated:
8 Jun 2009 at 06:23 UTC
Jump to comment: Most recent file
Comments
Comment #1
AmrMostafa commentedI don't have the exact problem, but something very similar..
This is confirmed in 6.x-1.x i.e. the DRUPAL-6--1 branch.
Comment #2
AmrMostafa commentedI should note that the first attach is handled by AHAH, while the second attach it appears that no AHAH is invoked and/or the form is submitted typically (i.e. no AHAH magic)
Comment #3
AmrMostafa commentedThe bug affects d.o from my testing results.
Comment #4
junito caramel commentedSame thing happend to me:
- When I attach 1 file and save, the file link doesn't appear
- When I attach 2 files, the first one disappear after I attach the second one. Adding a third one is OK in the form but only ONE file (the second) appears after saving.
Comment #5
jrglasgow commentedI am getting a similar problem, but with my site anytime a file is uploaded using the AHAH method the file isn't saved.
Comment #6
AmrMostafa commentedHere is a patch. What I did was copy upload_js() and adjust it for comment_upload. I believe this module may have started off with a similar path, and any changes made which resulted in the existing code were made for a good a reason, but I couldn't know why.
Comment #7
AmrMostafa commentedComment #8
jrglasgow commented@alienbrain,
the patch applied correctly, but when I tried to test it I got an error with PHP not being able to include the comment_upload.module file - permission denied
Comment #9
jrglasgow commented@alienbrain,
I re-applied your patch in #6 by hand and after I cleared the cache it works great. Here is a patch from my machine that should work.
Comment #10
jrglasgow commentedComment #11
netaustin commentedReviewed, tested and committed (200394). This fixes the multiple-upload problem while preserving the "can't change description" fix, which results in a module that seems to be completely usable on its own.
Thank you both very much for working on this.
Comment #12
jo_54 commentedhello
thank for your very reactiv work !
just one last thing :
when i make a preview, all data ( comment and uploaded files ) disappear ! ??
Pending to correct this problem,
you can remove "preview" boutton in doing this :
// $Id: comment.module,v 1.617.2.4 2009/01/06 17:34:54 goba Exp $
// line 1394 --> //$form['preview'] = array('#type' => 'button', '#value' => t('Preview'), '#weight' => 20);
jo_54
Comment #14
heine commentedOT but perhaps interesting history; upload_js was based comment_upload_js when it was rewritten during SA-2008-047.