Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
DeeG2009
3 years agoExplorer | Level 3
Help with python script uploading images to already created folders
I am looking for some assistance with a script i am trying to get to work to transfer images from a windows server to a dropbox account. For the life of me i cannot get it to stop creating new folder...
DeeG2009
3 years agoExplorer | Level 3
Wooowww. i feel like such a idiot now haha, ive been messing with this for almost a week now, and thats all it was. "/CPGC/Akron/" is working just fine to the existing folder. (like i said, totally new to anything coding, self teaching and sponging off others knowledge" ; now a new concern, when script is stopped and started again, i get an error: Error uploading Gutter_Cleaning_Akron1.jpg to Dropbox: ApiError('d', UploadError('path', UploadWriteFailed(reason=WriteError('conflict', WriteConflictError('file', None)), upload_session_id='pid_upload_session:
I am assuming it is because when my script runs it will name the images, example: image1.jpg,image2.jpg, etc... and once stopped and started again it starts at 1 again and will not overwrite, Could a timestamp always keep the naming unique ?
My ultimate goal is to be able to have the script run down a list of lines in a csv instead of just one line, each line in the csv would be for different folders and corresponding data for each image to be uploaded to, but i cant figure out how to have the script run each line in the csv say 10 times, then move on to the next and so on...
Greg-DB
Dropbox Community Moderator
3 years agoDeeG2009 A 'path/conflict/file' error indicates that the upload failed because there is already a file at the specified path. If you did want it to overwrite an existing file at the specified path, you can set the write mode accordingly, like in the example that Здравко linked to earlier. Otherwise, yes, you would need to use a unique name. Exactly what filenames you use and the logic you use in your code is up to you.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!