Hi there,

Any chance of a D7 port of this module happening at any stage? I'm willing to assist if needed.

CommentFileSizeAuthor
#12 multifileD7.patch1.38 KBelgordogrande
#5 webform_multifile_d7_hooks.patch4.12 KBAnonymous (not verified)
#4 webform_multifile_d7.patch684 bytesAnonymous (not verified)
#2 webform_multifile.zip94.87 KBvzblk

Comments

jrsinclair’s picture

Title: Drupal 7 (D7) Port of Webform Multiple » Drupal 7 (D7) Port of Webform Multifile
vzblk’s picture

Assigned: Unassigned » vzblk
Status: Active » Needs review
StatusFileSize
new94.87 KB

I ported it to Drupal 7 for my project and it works but not good tested.

berryintlonline’s picture

Any chance that this module will be back ported to D6?

Anonymous’s picture

StatusFileSize
new684 bytes

I patched the "Required" validation. You just forgot to use "_fids", instead you left it "_fid".

Anonymous’s picture

StatusFileSize
new4.12 KB

Additional hooks are needed to handle download and private files and needed modification of delete upload file. See attached patch.

attiks’s picture

FYI: I created a full project for this, if any one wants to help feel free: http://drupal.org/project/webform_multifile

Ludwig’s picture

I applied the patch (and the other patch for D7) but I get this error

PDOException: SQLSTATE[HY000]: General error: 1 near ":db_statement_placeholder_0ELECT": syntax error: SELECT data FROM {webform_submitted_data} WHERE nid = %d AND cid = %d; Array ( [0] => 2 [1] => 8 ) in _webform_analysis_multifile() (line 619 of /Applications/MAMP/htdocs/owlbooks/sites/all/modules/webform_multifile/multifile.inc)

This occurs if I select Analysis in the Results
I'm not a php dude but I'm pretty sure I applied the patches correctly)

Sorry to be a pain but do you have any clues?

ENVIRONMENT NOTE: MacOS X (MAMP) and I am running SQLite

Ludwig’s picture

Category: feature » bug

I'm also getting this error:
Notice: Undefined variable: suffix in theme_webform_render_multifile() (line 407 of /Applications/MAMP/htdocs/owlbooks/sites/all/modules/webform_multifile/multifile.inc).

blasthaus’s picture

to fix the suffix error, just add
$suffix = '';
around line 406 of multifile.inc

jelle_s’s picture

Status: Needs review » Fixed

There is a drupal 7 dev version available for webform multifile at Webform Multiple File Upload's project page (will probably show op on the page within 12 hours or so, already available directly from git...)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

elgordogrande’s picture

StatusFileSize
new1.38 KB

I had a few problems with the multifile.inc in the D7 port and made some changes. I'm uploading a patch for you to review. Please let me know your thoughts. It's my first patch and my first contribution, so I would appreciate any feedback.

attiks’s picture

@gmakely: we createda full project at http://drupal.org/project/webform_multifile can you test your patch against the dev version (git clone --branch 7.x-1.x attiks@git.drupal.org:project/webform_multifile.git)?

PS: Your patch looks strange, did you use git diff?