I am currently doing a motion detection program. I have already managed to capture images when motion is detected. I want the photos to be uploaded to Dropbox when captured. It works fine for the first few images but stops working after awhile. It displays the following error
ApiError: ApiError('', UploadError(u'path', UploadWriteFailed(reason=WriteError(u'conflict', WriteConflictError(u'file', None)), upload_session_id=u'')))
This is my code
def TakePicUpload(avg):