Comments (3)
@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.
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.
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)
- Merge with jDrupal? HOT 5
- user/login.json 404 (Not Found) with drupal.user_login HOT 8
- Rebuild angular-drupal.min.js
- Update README examples
- Create dev branch HOT 2
- 403 Forbidden on saving a user (PATCH) HOT 7
- CSRF token issue for Safari/ios HOT 1
- Anonymous user is always returned after logging in. HOT 9
- bower.js needs to know where the src file is HOT 2
- Cookie domain HOT 3
- Login issue with different token and sessid HOT 7
- How to get success message HOT 6
- How to create node with entity field HOT 15
- Loading other entities HOT 3
- drupal.userLogout doesn't succeed. HOT 9
- How to upload images to image field? 7.x HOT 5
- Login response is correct, but printing out the user id still shows anonymous HOT 3
- 403 PUT/PATCH on user register/update on a multilingual site HOT 6
- ios incompatibilities HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-drupal.