We're having trouble importing file attachments into Drupal 7. We have pdf and jpg files attached in Gathercontent. We are importing into Drupal File field, but whether selecting 1 or unlimited field values and correct allowed file extensions, it's always returning an error:
Operation failed:Invalid data value given. Be sure it matches the required data type and format.
As a side observation, importing pdf and jpg files into Drupal Image field produces no errors - files are visible in Drupal nodes but such nodes are unusable since there are errors when trying to modify and save those nodes in Drupal.
Comments
Comment #2
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedThanks for reporting, we are currently looking on your problem
Comment #3
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedPlease test with this patch.
Comment #4
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedComment #5
Arek Jankowski CreditAttribution: Arek Jankowski commentedThanks for the patch, but it's still not working for us. The error we're seeing on the import page is:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=224&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: in dblog_watchdog() (line 163 of /var/www/html/modules/dblog/dblog.module).
Items without attachements still import fine.
Comment #6
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedCan you provide any additional information please? Error you posted is not from our module.
Comment #7
daniel.czegledi CreditAttribution: daniel.czegledi at Cheppers commentedI can reproduce the ajax error with the previous patch and i fixed it.
Comment #8
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedyou probably want to remove this
and please provide interdiff
Comment #9
daniel.czegledi CreditAttribution: daniel.czegledi at Cheppers commentedSorry! Yes i want to remove that code i fixed it
Comment #10
mirom CreditAttribution: mirom at Cheppers for GatherContent commented$node->{$local_field_name}->value() should be probably $files
Comment #11
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedFixing problem described in #10.
Comment #12
mirom CreditAttribution: mirom at Cheppers for GatherContent commentedRerolling for the latest head.
Comment #14
mirom CreditAttribution: mirom at Cheppers for GatherContent commented