dropbox

Using dropbox as local Git working repo

点点圈 提交于 2019-12-09 13:19:07
问题 I have a Github repo that I use for a specific project. I now want to work on this project at a client's office where I am unable to use git. I was thinking about using dropbox as a local repo, pulling to dropbox from github on my home machine, using the dropbox code at work, and then pushing any changes again from home. Has anyone done this before? I have seen lots of people using dropbox as a repo for git, but not as a single-user local working copy. 回答1: I've done exactly that and it works

Dropbox SDK 401 Error

倾然丶 夕夏残阳落幕 提交于 2019-12-09 06:07:28
问题 I am using the Dropbox SDK and I have it set up so the app can only access the /Apps/MyAPP folder. I was testing it out and deleted the folder online. Now when I'm in the app instead of asking to relink dropbox it gives me a 401 error. I don't know why it doesn't display the view. It was working before I deleted the folder(unlinking the app online). Thank you in advance. PageFlipper[66893:c07] [WARNING] DropboxSDK: error making request to /1/metadata/sandbox - Token is invalid. 2012-08-23 03

NSURLErrorDomain error -1021

风格不统一 提交于 2019-12-09 01:53:56
问题 I'm developing an app were I integrated dropbox. Login is done properly also I'm able to create folder in dropBox. But when I try to load file I'm getting error Following error I'm getting error making request to /1/files_put/dropbox/Info.plist - Error Domain=NSURLErrorDomain Code=-1021 "The operation couldn’t be completed. (NSURLErrorDomain error -1021.)" UserInfo=0x6859bc0 {destinationPath=/Info.plist, sourcePath=/Users/bcod/Library/Application Support/iPhone Simulator/5.0/Applications

Using Git and Dropbox on different machines without Problems?

陌路散爱 提交于 2019-12-08 21:44:31
I already found some similar topics to this, but it wasn't exactly the same. I am working on webdesign projects on three different machines Office Windows PC Home Windows PC MacBook I keep my whole Project-Folder synchronized trough DropBox. This works very well and I'll keep that for sure. I don't share any projects with other persons with DropBox. Now I'd like to use Git for version controlling and to collaborate on code projects with other persons. I still work on all three machines, but actually this three machines still count as " one person " and only one contributor to a git repository,

DropBox API application/octet-stream header

痞子三分冷 提交于 2019-12-08 13:50:44
问题 I'm attempting to make a cUrl request with PHP to the Dropbox API, in order to begin to upload a very large zip file. Here is the documentation I'm trying to implement, found at https://www.dropbox.com/developers/documentation/http/documentation#files-upload - URL structure: https://content.dropboxapi.com/2/files/upload_session/start Example cUrl Request: curl -X POST https://content.dropboxapi.com/2/files/upload_session/start \ --header "Authorization: Bearer <get access token>" \ --header

PHP Remotely delete files on Dropbox using PHP without using an API

自古美人都是妖i 提交于 2019-12-08 13:02:47
问题 I have the code below to upload files to Dropbox. Now I'd like to modify the code below to delete certain folders / images on dropbox in a particular folder. <?php $siteroot = $folder_output; $dropbox_email='xxx@xxxxx.com'; //Dropbox username $dropbox_pass='xxxxxxxxxxxx'; // Dropbox password include("DropboxUploader.php"); $uploader = new DropboxUploader($dropbox_email, $dropbox_pass); function FolderToDropbox($dir, $dropbox_link){ global $foldername; $dropbox_folder = 'Public/'; $files =

iOS - Dropbox upload to “App Folder”

房东的猫 提交于 2019-12-08 10:06:46
问题 In my iOS application, I'm integrating dropbox api to upload files. While creating app in dropbox.com, i found 2 options. One is full folder availability and one is only "App Folder". I opted for "App folder" and gave a folder name as "xxx". Then I'm calling the following method that takes full file path as parameter. -(void)uploadFile:(NSString*)filePath { NSString *destDir = @"/"; [[self restClient] uploadFile:[filePath lastPathComponent] toPath:destDir withParentRev:nil fromPath:filePath];

android Dropbox sync api upload file and display progress bar

微笑、不失礼 提交于 2019-12-08 07:40:44
问题 My app look like the Dropbox Notes example from Dropbox sync sdk, except I want to display a progress bar in listview when uploading new file to Dropbox. The example listen text file change to update file, but in my case, I upload many file types (text and binary). Here is my try to upload file: DbxPath path = new DbxPath("/test.pdf"); DbxAccount acct = NotesAppConfig.getAccountManager(getActivity()).getLinkedAccount(); DbxFile mFile; DbxFileSystem fs = DbxFileSystem.forAccount(acct); try {

Dropbox for Yii

橙三吉。 提交于 2019-12-08 07:27:22
问题 Has anyone any idea how to tie in the dropbox php api http://code.google.com/p/dropbox-php/ in Yii. I downloaded the source files and put in ext.dropbox and then inserted the following code $dropbox = Yii::getPathOfAlias('ext.dropbox'); spl_autoload_unregister(array('YiiBase','autoload')); Yii::registerAutoloader(array('Dropbox_autoload','autoload')); $consumerKey = '***'; $consumerSecret = '***'; $oauth = new Dropbox_OAuth_PHP($consumerKey, $consumerSecret); try { $oauth = new Dropbox_OAuth

File migration via dropbox APi

≡放荡痞女 提交于 2019-12-08 07:02:35
问题 I'm using the dropbox API to migrate a large amount of files from one dropbox account to another. This seems to be taking between 2 and 7 seconds per file. Are there any ways to speed up the time it takes to move files using the dropbox API? source = dropbox.Dropbox('connectionstring') target = dropbox.Dropbox('connectionstring') list_folder = source.files_list_folder('') while list_folder: files = re.findall(r'name=[\'"]?([^\'" >]+)', str(list_folder)) for f in files: source.files_download