How to upload a file using Dropbox API iOS v1.0

I am going to use Dropbox API to my iOS application. There is no documentation available for Dropbox SDK for iOS. We need to understand how to use it by sample project which is included with SDK, tutorial on the web and SDK header files.

At first I confirmed sample project ‘DBRoulette’ works fine on my environment. Then I started to try ‘tutorial’ on the Dropbox SDK web page. When I try uploadFile API of the tutorial, I got a ‘deprecated’ warning message.

I could understand the new uploadFile API by Changelog and DBRestClient.h. I hope that the tutorial will be revised to use new API in the future.

Here is new uploadFile. paraentRev is new parameter. We can put ‘nil’ here. In this case, uploaded file would never over written existing file on the Dropbox server. If same filename exists on the sever, new filename would be modified like ‘test(1).txt’.

If we need to over write existing file on the server, we need to ger parenetRev before issue the uploadFile. Let me show you simple code fragment for this.

Assumes ‘docDir’ has full pathname for the application Document folder and file ‘test.txt’ is already on the Document folder. resClient is initialized as the tutorial also.

ptsNotes S60 3rd

The ptsNotes is a software solution to manage a lot of notes (memos) efficiently. Data can be inputted on the mobile phone, and refer them very easily. This is a completed solution by the mobile phone including the database backup and restoration function.

We also offer ptsNotes Windows version with the database compatibility. Therefore, you can input data to the database very easily with Windows PC and refer the same data with the mobile phone.