Implement support for file field in Drupalgap#825
Implement support for file field in Drupalgap#825luxio wants to merge 8 commits intosignalpoint:7.x-1.xfrom
Conversation
|
@luxio Awesome video! You've done some great things here. I am reviewing this now. Initial recommendation would be, it looks like we'll want to leave the binaries out of the pull request, and only commit the |
src/includes/form.elements.inc.js
Outdated
| if (element.field_info_field && | ||
| element.field_info_field.cardinality == -1) { | ||
| var add_another_item_variables = { | ||
| text: 'Add another item', |
There was a problem hiding this comment.
@luxio Please wrap this in a t(), text: t('Add another item')
|
@luxio Looks great, very nice work. Is this in any ways tied to how the Media module is operating in Drupal, or is this independent of it and only for DrupalGap Core Files/Images ? |
|
Thanks for the Feedback.
It is independent of the media module. |
| dpm(s[0]); | ||
| var mediaHTML = "<video style='max-width:100%;' controls><source src='" + s[0].fullPath + "'></video>"; | ||
| $("#" + input_id + "-media").html(mediaHTML); | ||
| uploadFile(s[0].fullPath); |
Here is my current work on uploading (unlimited) media files in Drupal Gap using the raw file services resource.
It is not ready yet, but I'm interested in your feedback to this approach.
Here is short demo: