[Django]-DRF/Angular: form data with nested objects with dotted/[] notation

2👍

found it: Upload lib can be configured by objectKey: '.k'

details:

*data: {key: file, otherInfo: uploadInfo},
/*
This is to accommodate server implementations expecting nested data object keys in .key or [key] format.
Example: data: {rec: {name: 'N', pic: file}} sent as: rec[name] -> N, rec[pic] -> file
data: {rec: {name: 'N', pic: file}, objectKey: '.k'} sent as: rec.name -> N, rec.pic -> file */
objectKey: '[k]' or '.k' // default is '[k]'

1👍

You Should try make your key as security.title in FormData

Leave a comment