---
title: "Discussion on \"Fastapi receive a xlsx file and read it\" | Hashnode"
description: "Discussion on \"Fastapi receive a xlsx file and read it\". How to accept a xlsx file and read it using Fastapi, the following is the implementation code.\n@application.post(\"/uploadFile/\")\nasync def create_upload_file(file: UploadFile):\n    if file.filename.endswith('.xlsx'):\n        # Read it, 'f' type is by..."
url: "https://hashnode.com/posts/fastapi-receive-a-xlsx-file-and-read-it/636005356662f166c4a2c404"
---

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

Discussion

# [Fastapi receive a xlsx file and read it](https://asiones.hashnode.dev/fastapi-receive-a-xlsx-file-and-read-it?utm_source=hashnode&utm_medium=feed)

How to accept a xlsx file and read it using Fastapi, the following is the implementation code. @application.post("/uploadFile/") async def create\_upload\_file(file: UploadFile): if file.filename.endswith('.xlsx'): # Read it, 'f' type is by...

Oct 31, 2022 · 1 min read · asiones.hashnode.dev  
Read the article

-   [#fastapi](https://hashnode.com/tag/fastapi)
-   [#excel](https://hashnode.com/tag/excel)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Asiones Jia](https://hashnode.com/@asionesjia)

@asionesjia

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

白毛浮绿水，红掌拨清波。

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
