0

The research I've done sofar led me to techologies that seem out of date. I wonder if there is a right/common way to upload files and get progress info in 2018.

I've read that RFC1867 is obsolete

I'm trying to setup NGINX Upload Progress Bar but it uses jsonp in its response and I've also read that I should not use jsonp.

My stack is NGINX, Gunicorn, Ubuntu, Django 2.1, React

I'm trying to avoid jquery

I only need last version of Firefox and Chrome to be supported

Note : I'm only intersted in the client/server communication part, for UI I use react semantic ui progress

Yvain
  • 882
  • 1
  • 10
  • 27
  • 1
    In 2018? I'd use the HTML5 file API. No need to make any changes in the backend because everything happens in the browser. You can find the relevant code in [MDN docs](https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications#Handling_the_upload_process_for_a_file). – xyres Sep 12 '18 at 15:12
  • you can take a look at https://github.com/ouhouhsami/django-progressbarupload – gagan trivedi Sep 12 '18 at 16:08

1 Answers1

0

I now use HTML5 file API Thanks to @xyres comment.

Yvain
  • 882
  • 1
  • 10
  • 27