fixed threshold handling

publish file to Dropbox when threshold was exceeded