Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Holzauge20
4 years agoExplorer | Level 4
Dropbox-Upload mit Python (API v2)
Der Dropbox-Upload per Python-Script Datei mit demRaspberry Pi über die Schnittstelle API v2 funktioniert plötzlich nicht mehr. Hat jemand das gleiche Problem ?
- 4 years ago
Ich glaube, dass Sie da besser aufgehoben sind:
https://www.dropboxforum.com/t5/Developer-API/ct-p/101000041
ernstMreicher58
Super User
4 years agoIch glaube, dass Sie da besser aufgehoben sind:
https://www.dropboxforum.com/t5/Developer-API/ct-p/101000041
- Holzauge204 years agoExplorer | Level 4
Vielen Dank für den Link. Ich konnte dort die Lösung für mein Problem finden.
- EibeGrabung4 years agoExplorer | Level 3
Hi! ist vielleicht eine komische Frage, aber würde es ihnen etwas ausmachen ihr script zu teilen? Ich versuche seit längerer Zeit schon einen code zu schreiben der von meinem raspberry pi dateien auf dropbox hochlädt, bekomme es aber leider nicht hin. Würde mir wirklich helfen!
- Holzauge204 years agoExplorer | Level 4
Hallo und guten Abend,
für den Dropbox-Upload von meinem Raspberrypi benutze ich folgendes script:
#!/usr/bin/python3
import dropbox
db = dropbox.Dropbox('nnnnn') # nnnnn = hier den token eingeben! Anführungsstriche nicht weglassen!!
fname = 'nnnnn.nn' # Name der hochzuladenden lokalen Datei
xname = '/nnnnn.nnn' # Name der Datei in Dropbox
f = open(fname, 'rb') # Datei öffnen
response = db.files_upload(f.read(), xname) # Datei hochladen
print('uploaded:', response)
f.close() # Datei schließenIch hoffe, ich konnte Dir weiterhelfen.
Und viel Spaß beim Basteln und programmieren.
About Eine Frage stellen
Sie haben Fragen? Richten Sie sie an die Dropbox Community!
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!