[Django]-Uploading multiples image with Django Rest Framework in a single POST array?

6👍

The really one that I want, is a way to do it just receiving the data in a Json Array, this is by using a mobile app build in appcelerator where the user sends an array of images.

You’ll want to inspect the underlying request and figure out exactly what’s actually being sent on the wire. JSON doesn’t support a file primitive, so the “array of images” is likely to actually be an array of strings with some kind of encoding.

request.FILES[‘fotos’]

For multiple values, use request.FILES.getlist('fotos').

Leave a comment