Post more files and save them into db - django

OverlordQ

New Member
i am trying to save more files into db. i am sending with \[code\]POST\[/code\] and catching in server in this way: html: \[code\]<input type="file" multiple="multiple" name="images[]"/>\[/code\]server code - django: \[code\]images = request.POST.getlist('images[]')\[/code\]. but what i get thru this is only an empty array. \[code\][]\[/code\]. now my problem is that i dont know how to save those files along with other data at once into db. well, i thought, i would run a loop over \[code\]images[]\[/code\] but i have other data also in the hand. please give me hint and guidance. thanks a lot
 
Back
Top