Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
ElsayedGamal
8 years agoExplorer | Level 3
How can i upload file to my Dropbox account with vba ?
Hello My Friends i need to upload file to my drobpox account by vba with access database how can i d that ?
ElsayedGamal
8 years agoExplorer | Level 3
thanks for reply
i need to upload file with code to my online dropbox
i found that code but i need to know how i use
like where i will put my username and passwod of my dropbox account ?
and wher i will put my online drobpox folder Url
and what is my online drobpox folder Url
Public Sub DB_PutFile(FileName As String)
Dim req As MSXML2.ServerXMLHTTP60
Dim strFile As String
Dim Pos1 As Integer
Dim Pos2 As Integer
Set req = New MSXML2.ServerXMLHTTP60
Dim arg As String
strFile= ReadBinary(FileName)
arg = "{""path"":""/" & FileName & """,""mode"":{"".tag"":""overwrite""},""autorename"":false,""mute"":true}"
req.Open "POST", "https://content.dropboxapi.com/2/files/upload", False
req.setRequestHeader "Authorization", "Bearer xxxxxxxxxxxxxxxx"
req.setRequestHeader "Content-Type", "application/octet-stream"
req.setRequestHeader "Content-length", Len(Result)
req.setRequestHeader "Dropbox-API-Arg", arg
req.setRequestHeader "User-Agent", "api-explorer-client"
req.send strFile
If req.Status = 200 Then
Debug.Print req.responseText
Else
'MsgBox req.Status & ": " & req.statusText
Debug.Print req.responseText
End If
End Subthanks
Lusil
Dropbox Staff
8 years agoThanks for the swift reply, ElsayedGamal.
Could you please clarify if you’re creating an app that uses the Dropbox API? If so, please let me know and I can forward this thread to the appropriate section.
Let me know and I’ll make sure to get back to you as soon as possible!
- ElsayedGamal8 years agoExplorer | Level 3
i make an access Database
by that Access DB i need to upload report.txt to my Drobpox online folder
how can i do that with Microsoft visual basic 6 VBA
iknow i can download Drobpox app an setup it and i will copy my report .txt to drobpox folder i know that
but i didnt need to do that because i will use My access DB in More PC
so i will not Setup on every PC that Drobpox App
so what can i do
and thanks for your replay
- Lusil8 years ago
Dropbox Staff
Thanks for your quick reply once again, ElsayedGamal, and for the additional info.I’ve forwarded you to the API Support section of the Forum, where some like-minded users might be able to help out on this.Cheers! :grin:
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!