K
K
kitasS2020-05-07 23:09:08
Flask
kitasS, 2020-05-07 23:09:08

How to implement multiple file uploads in Flask, like in Habr QNA?

Hello! I wanted to ask how you can upload files, like on habr qna, when you can upload a lot of files?

Searched in Google, scoured on stackoverflow - FOUND NOTHING.

All there is is loading multiple files with a single selection. IF YOU LOAD ONLY ONE FILE, NOTHING WILL WORK. It will only download the latest file.

I guess this can be done with AJAX. But how the hell do you do that? I AM TOTALLY DISAPPOINTED!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-05-08
@kitasS

Send the picchu to an asynchronous method using FormData , get back JSON (optional) with the data from the picchu upon successful upload.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question