this is my code please edit it to get the value of upload progress.
import pathlib
import dropbox
import re
# the source file
folder = pathlib.Path("C:\\Users\\Hossam\\Desktop\\test\\backup") # located in this folder
filename = "20180911-183844.sql" # file name
filepath = folder / filename # path object, defining the file
# target location in Dropbox
target = "/home/Apps/Sinapi" # the target folder
targetfile = target + filename # the target path and file name
# Create a dropbox object using an API v2 key
d = dropbox.Dropbox('my_access')
# open the file and upload it
with filepath.open("rb") as f:
# upload gives you metadata about the file
# we want to overwite any previous version of the file
meta = d.files_upload(f.read(), targetfile, mode=dropbox.files.WriteMode("overwrite"))