Giter Site home page Giter Site logo

Comments (3)

signalpoint avatar signalpoint commented on August 19, 2024

@fufu7755 It's not possible from the client side, you'll have to do something on the back end (in a custom Drupal module) to make that happen. Probably hook_node_insert() is what you're looking for.

from angular-drupal.

fufu7755 avatar fufu7755 commented on August 19, 2024

Thank you for your reply!
Another problem I have about field_images. A few days ago when I upload pictures, drupal gave me a warning:
Notice: Undefined offset: 0 in image_field_widget_form () (line 358 of /data/wwwroot/test.china-op.cn/modules/image/image.field.inc).
Notice: Undefined offset: 0 in file_field_widget_form () (line 533 of /data/wwwroot/test.china-op.cn/modules/file/file.field.inc).

Before I use field_images upload pictures has been normal, and I did not modify any code, field_images Number of values is Unlimited. My code format is:
        field_images: {
           und: [
             {
               'fid': 'xxxxxxxxxxxx'
             },
             {
               'fid': 'xxxxxxxxxxxx'
              }
           ]
         },

In addition, I set the value of field_images Number of values to 1, I can upload a picture.

Can help me analyze where the problem lies. Thank you.

from angular-drupal.

fufu7755 avatar fufu7755 commented on August 19, 2024

Thank you very much, I solved, found you get the code.
https://www.drupal.org/node/2224803#comment-8805759

from angular-drupal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.