---
title: "Discussion on \"Multiple File Upload With One Request In Django Rest Framework\" | Hashnode"
description: "Discussion on \"Multiple File Upload With One Request In Django Rest Framework\". Most times, we might want to upload multiple files to our server in a single request. In this tutorial I'll be uploading multiple files and then returning the image URL as response.  I assume we already know how to install and setup django, django re..."
url: "https://hashnode.com/posts/multiple-file-upload-with-one-request-in-django-rest-framework/62755867317fc95a74ca64d4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Multiple File Upload With One Request In Django Rest Framework](https://budescode.hashnode.dev/multiple-file-upload-with-one-request-in-django-rest-framework?utm_source=hashnode&utm_medium=feed)

Most times, we might want to upload multiple files to our server in a single request. In this tutorial I'll be uploading multiple files and then returning the image URL as response. I assume we already know how to install and setup django, django re...

May 6, 2022 · 3 min read · budescode.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#django](https://hashnode.com/tag/django)
-   [#rest-api](https://hashnode.com/tag/rest-api)

## Written by

[Omonbude Emmanuel](https://hashnode.com/@budescode)

@budescode

  
[View profile](https://hashnode.com/@budescode)

Software Engineer

I’m a passionate, detail-oriented and product-minded Software Engineer, I’ve 5+ years of experience in programming, building web and mobile apps to scale. I'm a Developer Advocate who's always willing to help and assist anyone venturing into the tech world.

## Responses 3

Markdown supported · ⌘↵ to post

[Ericson Timog](https://hashnode.com/@amby581)

[Mar 13, 2023](https://hashnode.com/posts/multiple-file-upload-with-one-request-in-django-rest-framework/62755867317fc95a74ca64d4/comment/640ee6c5822efe5e97b09fe0)

what about returning id when sending post method? Thanks in advance :)

[Mikolaj Buchwald](https://hashnode.com/@mikbuch)

[May 7, 2022](https://hashnode.com/posts/multiple-file-upload-with-one-request-in-django-rest-framework/62755867317fc95a74ca64d4/comment/6276cc82dc122f5a4f21e9b6)

Very informative, thanks

From where `url` comes from in:

```
imageurl = f'{photo.file.url}'
```

?

[Omonbude Emmanuel](https://hashnode.com/@budescode)

[May 8, 2022](https://hashnode.com/posts/multiple-file-upload-with-one-request-in-django-rest-framework/62755867317fc95a74ca64d4/comment/6276cc82dc122f5a4f21e9b6#reply-627713af317fc95a74ca8eb3)

It’s django inbuilt method to return the url of the file saved. You can see it from the response gotten.

[Mikolaj Buchwald](https://hashnode.com/@mikbuch)

[May 9, 2022](https://hashnode.com/posts/multiple-file-upload-with-one-request-in-django-rest-framework/62755867317fc95a74ca64d4/comment/6276cc82dc122f5a4f21e9b6#reply-6279041dffdd2d96c766f333)

[Omonbude Emmanuel](https://hashnode.com/@budescode), it's nice, thank you for the explanation.

[Ezekiel Cliffy Egbetamah](https://hashnode.com/@Cliffedge)

[May 6, 2022](https://hashnode.com/posts/multiple-file-upload-with-one-request-in-django-rest-framework/62755867317fc95a74ca64d4/comment/62755d4c317fc95a74ca6585)

You did well

[Omonbude Emmanuel](https://hashnode.com/@budescode)

[May 6, 2022](https://hashnode.com/posts/multiple-file-upload-with-one-request-in-django-rest-framework/62755867317fc95a74ca64d4/comment/62755d4c317fc95a74ca6585#reply-627572c3317fc95a74ca67fe)

Thank you
