danielbierwirth / dropboxbrowser Goto Github PK
View Code? Open in Web Editor NEWA simple ios Dropbox PDF Document Browser - list Dropbox, browse directory, download PDF Documents
License: MIT License
A simple ios Dropbox PDF Document Browser - list Dropbox, browse directory, download PDF Documents
License: MIT License
Hi, I try to look into this code so downloaded, opened, and executed the example file.
It opened successfully, so I tapped button to authorise this app from dropbox app.
But in the Dropbox app, it shows an alert, titled as "Error loading app info".
Is this a known issue?
I'm using iOS 8.1.3, and up-to-date Dropbox app.
Best,
Ooooooops, perhaps because I didn't even set the dropbox API keys.
You can either remove or keep this posting, perhaps for those who make the same mistake.
Sorry for the mess!
HI,
Thanks for this nice tool.
I would like to propose an enhancement.
Can you add the ability to UPLOAD Files in dropbox ?
Thank you very much
George Gerardis
Will this work with v2 of the Dropbox API?
In ODBoxHandler.m, in downloadDropboxFile:
the filepath will lose the file extension, i.e. that the file downloaded will have no extension at all.
I would suggest to change line 9 to
NSString *fileName = file.lastPathComponent;
which will fix that.
Can this project be used with v3.2 of the Dropbox SDK? The podspec wants an older version.
I tried to test it but I keep having the same error :
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array'
What to you have in your storyboard anyway ?
In ODBoxHandler.m, - (void)downloadDropboxFile:::, the calculation of the current download progress is wrong. You always divide a (smaller) int by a (larger) int, which will always result in a zero progress value.
The int64_t type vars should be casted to CGFloat, making progress a CGFloat:
CGFloat progress = (CGFloat)totalBytesDownloaded / (CGFloat)totalBytesExpectedToDownload;
NSNumber *downloadProgress = [NSNumber numberWithFloat:progress];
Hi,
I assume you mean to share this code with the world? I would like to use it, but currently can’t, because there is no license in place that allows me to do so. (I personally always use the MIT license, YMMV.)
Hello,
Thanks for your fantastic tool...it's really fantastic.
I have to propose an possible .
If I have more than one account in dropbox.....and I already login in one of my accounts, How can I logout from that account and login in one of my others?
I mean that I want to have a "Logout option" within my app....
Again, Thank you very much.
George N. gerardis
Maybe I'm doing it wrong (always possible) but the UITableView in DropboxBrowser never actually updates its contents when the user successfully links to Dropbox. The link succeeds (I see the notification come in from the Dropbox SDK) but the tableview remains unpopulated. The way I get around this for now is subscribing to the Dropbox SDK's dropboxLinkedSuccessfully
and making (void)updateContent
a public method callable by my code. Really though, shouldn't this be an option for DropboxBrowser to handle?
Hi,
is it possible to have an example how to use the following method -->
Thanks in advance
George
Hi,
Do you plan a release with cocoapods?
I'm using this library and its working fine in happy scenarios but now I want to log out from dropbox account. How to do that?
Delegate methods are only called on files at the root level. Minor fix, pull coming.
Instead of reloading the table view data when a folder is selected, it would be optimal to push a new UIViewController
onto the Navigation Stack.
The current implementation simply reloads the table, navigation bar, and does a table view animation:
leftButton.image = [UIImage imageNamed:@"BackButton"];
leftButton = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:self action:@selector(moveToParentDirectory)];
self.navigationItem.leftBarButtonItem = leftButton;
NSString *subpath = [self.currentPath stringByAppendingPathComponent:selectedFile.filename];
self.currentPath = subpath;
self.title = [currentPath lastPathComponent];
...
[self listDirectoryAtPath:subpath];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
Needs to be fixed. Would provide numerous benefits if a new view controller could be pushed.
validation with api key and everything goes smoothly once im logged in i drag the tabview to refresh and i get Thread 1:EXC_BAD_ACCESS (code=2, address=0xbf7fffcc) on the beggining of this method call
(DBRestClient *)restClient {
if (!self.restClient) {
self.restClient = [[DBRestClient alloc] initWithSession:[DBSession sharedSession]];
self.restClient.delegate = self;
}
return self.restClient;
}
'pod install' is ok, but I got error from ODBoxHandler.m
No visible @interface for 'DBFILESUserAuthRoutes' declares the selector 'listFolder:recursive:includeMediaInfo:includeDeleted:includeHasExplicitSharedMembers:'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.