dropbox

how to upload file from codeigniter app to dropbox

…衆ロ難τιáo~ 提交于 2019-12-13 05:05:06
问题 I have a controller to upload image to my web server. I want to upload that image to dropbox as well during the process. how would I do it? This is my simple upload.php controller: function index() { // get the binary data $file = file_get_contents("php://input"); // prepare new name for upload image $name =rand().time().'jpg'; $path = site_url('photo'); // save to server directory file_put_contents($path.$name, $file); // save the name and id of the post to post photo table $input = array(

Upload file to Windows Azure with only the link of the file is provided

百般思念 提交于 2019-12-13 03:39:24
问题 How can I upload a file in azure if I only have the URL of the file to upload. In this case, i 'm using Dropbox file chooser which selects file from dropbox and returns its url path. eq https://www.dropbox.com/s/o9myet72y19iaan/Getting%20Started.pdf Now we need the file to be stored in Windows Azure blob. What is the easiest way to do this without downloading the file first. I'm planning to use a asp.net web api for the uploading of file to azure blob. 回答1: At first, I thought it should be

null pointer exception while running doInBackground method

a 夏天 提交于 2019-12-13 03:38:20
问题 i am trying to upload a file to dropbox, i have a also create a progress bar to check its status but while executing it throws exception . i created a object of UploadFile class and call the UploadFile function and the argument which are pass are UploadData.this, mApi,FILE_DIR ,file. public class UploadFile extends AsyncTask<Void, Long, Boolean> { private DropboxAPI<?> mApi; private String mPath; private File mFile; private long mFileLen; private UploadRequest mRequest; private Context

Dropbox Core API 0 bytes size in metadata for image

偶尔善良 提交于 2019-12-13 02:54:06
问题 I'm using Dropox Core API for my App. I retrieve all the metadata with the good endpoint. But sometimes I got metadata like this : "size": "0 bytes", "rev": "38af1b183490", "thumb_exists": true, "bytes": 2453963, "modified": "Mon, 07 Apr 2014 23:13:16 +0000", "client_mtime": "Thu, 29 Aug 2013 01:12:02 +0000", "path": "/Photos/flower.jpg", "photo_info": { "lat_long": [ 37.77256666666666, -122.45934166666667 ], "time_taken": "Wed, 28 Aug 2013 18:12:02 +0000" }, "is_dir": false, "icon": "page

Posts to Wordpress sites via Dropbox fetch and reporting the URLs?

醉酒当歌 提交于 2019-12-13 02:23:24
问题 Sorry for the disturbing title, it's hard to describe what I want. I have a list of about 60 wordpress websites. On each website I have a Contributor account registered (so I can not use the XML-RPC support) and I post about 1-5 articles on every website, every month. The articles (about 150/month) is delivered to me via Dropbox. I manually log into each website with a specific Username and Password I post the articles on websites I save the URL:s to each post in a list Does anyone know if

When using Dropbox CoreAPI, how to skip user permission?

て烟熏妆下的殇ゞ 提交于 2019-12-13 02:19:03
问题 I'm making an application that plays streaming video through Dropbox. My videos are uploaded to a Dropbox public folder. I'm using coreApi, media method, and I have had success getting my video's path and playing it. But whenever I run the application, I see two unexpected screens: First, if a user doesn't login at dropbox, my application demands a dropbox account login. Should whoever uses my application, need to have their own account? If so, someone who doesn't have an account, can't use

How to Upload NSDictionary in Memory to Dropbox, IOS

喜你入骨 提交于 2019-12-13 01:17:52
问题 I have an xml string that I want to upload as a .plist to a dropbox folder. Currently I create a NSDictionary and create a temp folder, I write dictionary as a plist to that temp folder and upload that .plist in that temp folder to dropbox. Which is I guess not a good programming solution; This works ok if([title isEqualToString:@"Upload to Dropbox"]) { //pass string in memory to nsdictionary NSData * data = [_uploadPlistString dataUsingEncoding:NSUTF8StringEncoding]; NSString *errorDesc =

Dropbox get public url of the file after upload

冷暖自知 提交于 2019-12-13 00:26:18
问题 Need to upload files to dropbox and get the public url of that file. I'am generating thumbnails and need to show that in my site. I should also show the original files to users without login to the dropbox site. After uploading to dropbox I need to get the original file url which will be used by crocodoc api viewer. I could able to upload the file and I am getting the metadata of that file. I created shared url and given that url that url img tag in html but seems returning as html instead of

chrome extension and dropbox dropin saver error

大城市里の小女人 提交于 2019-12-13 00:15:02
问题 I'm writing a chrome extension to save images found on a webpage to dropbox. I'm trying to use the dropin saver api to do this, however I am getting an error when the "save to dropbox" link is being clicked. The error I receive is as follows: {"error": "Origin does not match any app domain"} An examination of the GET request reveals the following: GET https://www.dropbox.com/saver?origin=chrome-extension%3A%2F%2Fogmklfknlcgklhfljkcijikghbnghcal&app_key=MYDROPBOXKEY 403 (OK) The error and the

How to get the revision of an item with Dropbox API

折月煮酒 提交于 2019-12-12 19:30:18
问题 I am currently using the Dropbox API to get details about files. So I need show the user the file version number. However, the rev item will return a file version which is like "35c1f029684fe". This is not consistent with the Dropbox UI which shows Version 1 or Version 0. How can I get this version number? 回答1: Having browsed through their file/folder metadata, I don't see any field that gives the number you want. Instead, you can use the revisions API. https://api.dropbox.com/1/revisions/