dash-uploader icon indicating copy to clipboard operation
dash-uploader copied to clipboard

Upload to DB support

Open MaksadAnnamuradov opened this issue 3 years ago • 1 comments

I am trying to find a way on how to handle that uploaded file, convert it to pandas db using read_csv, and then upload it to my mongo database. I have created the "/upload" endpoint, but for some reason, I am not hitting that endpoint. I have attached the image for the code. Any ideas will be appreciated.

Screenshot 2022-02-23 001132

MaksadAnnamuradov avatar Feb 23 '22 07:02 MaksadAnnamuradov

Hi @MaksadAnnamuradov ,

You do not have to manually define @app.server.route. This is done automatically by dash-uploader in the du.configure_upload step.

The part "convert it to pandas db using read_csv, and then upload it to my mongo database" is not related to dash-uploader but is a separate problem. You can do this inside a callback.

fohrloop avatar Feb 23 '22 10:02 fohrloop